Quickwin program not showing on Taskbar

Quickwin program not showing on Taskbar

I have created a modal dialog based program but I can't get it to show up on the Windows Taskbar or Alt+Tab taskswitching key. Can someone point me in the right direction. Thank you.

2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

That will happen if dialog's parent is a hidden main window (hidden windows do not show up on taskbar and task list). Note that for a dialog-based application you don't have to have any windows except for the main dialog.

However, QuickWin creates the main frame window by default and you can't do much about it. I suggest you turn your project into a Win32 application; actually, that will simplify it since you don't need any QW overhead -- all you need is already in DFLOGM:

INTEGER FUNCTION WinMain(hInst,hPrevInst,lpCmdLine,iCmdShow) 
!DEC$ATTRIBUTES STDCALL, ALIAS: "_WinMain@16" :: WinMain 
USE DFLOGM 
TYPE(DIALOG):: Dlg 
INCLUDE "Resource.fd" 
iret = DlgInit(IDD_SOMETHING, Dlg) 
iret = DlgSet(Dlg,...) 
... 
IF (DlgModal(Dlg).EQ.IDOK) THEN 
   iret = DlgGet(... 
   !Do something after closing (or not) 
END IF 
WinMain = 0 
END FUNCTION WinMain

That's about all you need.

HTH
Jugoslav

Jugoslav www.xeffort.com

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen