Login Page - Create Account

Support Board


Date/Time: Tue, 25 Feb 2025 10:19:28 +0000



Post From: How to get modeless dialog box working? Code Provided.

[2018-12-25 04:41:06]
doetrader - Posts: 13
I know have this source code but no error returning nor is the dialog box popping up:




if (sc.MenuEventID != 0 && sc.MenuEventID == r_MenuID)

{

g_hwndFooBar = CreateDialogParamA(NULL,
       "IDD_SIMPLEINPUTMENU",
         (HWND)sc.ChartWindowHandle,
         (DLGPROC)FooBarProc,
         1);
ShowWindow(g_hwndFooBar, SW_SHOW);

    SCString LogMessage;
LogMessage.Format("CreateWindow error: %d", GetLastError());
}

}