- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
That's about all you need.
HTH
Jugoslav
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page