I'm trying to make this resource for a simple box, with an OK and a CANCEL button...but...for some reason it isn't showing up. I don't know what i'm doing wrong. I don't 'really' know how to make resources, but i thought i did it right. I have MSVC++...and here is my code.
I would also like to add text to the box, and accept both the OK and CANCEL buttons.. I'm clueless, please help.Code:BOOL MainDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch (uMsg) { case WM_CLOSE: EndDialog(hWnd, 0); return TRUE; } return FALSE; } DialogBoxParam(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG1),NULL, (DLGPROC)MainDialogProc, 0);



LinkBack URL
About LinkBacks


