Hi! I want to create a modal dialog but I always get a non-modal dialog. My code: invoke DialogBoxParam, hInstance, ADDR EditorDlgName, hInstance, ADDR EditorDlgProc, 0 The resource file: EditorDialog DIALOGEX MOVEABLE IMPURE LOADONCALL DISCARDABLE 0, 0, 200, 100 STYLE DS_MODALFRAME | 0x0004 | DS_CENTER | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | WS_POPUP | WS_MINIMIZEBOX Could anybody help me, please? Thanx stem
Posted on 2001-02-22 05:56:00 by stem
stem, You have used the instance handle twice, the second position should have the parent window handle instead of the instance handle. Regards, hutch@pbq.com.au
Posted on 2001-02-22 06:01:00 by hutch--
Thanx a lot!
Posted on 2001-02-22 16:55:00 by Stem