- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
lret = DlgModeless(gdlg, nCmdShow)
if (lret == .FALSE.) goto 99999
do while( GetMessage (mesg, NULL, 0, 0) )
if ( DlgIsDlgMessage(mesg) .EQV. .FALSE. ) then
lret = TranslateMessage( mesg )
ret = DispatchMessage( mesg )
end if
end do
call DlgUninit(gdlg)
return
"Error"C, MB_OK)
WinMain = 0
!
! FUNCTION: BeginSub ( dlg, id, callbacktype )
!
! PURPOSE: Dialog box callback for initialization and destroy
!
! COMMENTS:
!
!****************************************************************************
!DEC$ ATTRIBUTES DEFAULT :: BeginSub
use dfwinty
use dflib
use MULTILAYERGlobals
use user32
use xflogm
INTEGER*4 NINM, INM
INTEGER*4 LENGTH, RETINT, iflag, IMATERIAL
CHARACTER($MAXPATH) MESSAGE
type (dialog) dlg
integer id, callbacktype
LOGICAL*4 LCHECK, FEXIST
call PostQuitMessage(0)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe because XFLOGM does not support DLG_DESTROY :smileywink: so thePostQuitMessage is never called...
The workaround is simple. Actually, dialog-based application created with AppWizard is overcomplicated. It should be plain:
integer WinMain(...
call DlgInit(...)
iret = DlgModal(...)
call DlgUninit(...
WinMain = 0
end function
You need modeless dialog and message loop only if you plan to launch modeless WS_POPUP dialogs other than the main one.
XFLOGM 2.0 (coming real soon now, just if I find few hours to dig my head out of regular job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Jugoslav.
Changing from Modeless to Modal and commenting out the message loop
works fine, after changing back from dflogm to xflogm.
Does your last sentence indicate modeless dialogs will also soon be
supported in XFLOGM?
Again, many thanks, the code for drawing to a control is really neat.
Best regards from
Tony Richards
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page