Member Avatar

[CODE]#include <windows.h> #include "resource.h" const char g_szClassName[] = "myWindowClass"; return; DialogBox(hInstance, MAKEINTRESOURCE(IDD_SIMPLECONTROL), NULL, SimpleProc);} int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) BOOL CALLBACK SimpleProc(HWND hWndDlg, UINT Message, WPARAM wParam, LPARAM lParam){switch(Message){ case WM_INITDIALOG: return TRUE; case WM_COMMAND:switch ( LOWORD (wParam) ) { case ID_HELLO:MessageBox(NULL,"Hey", "Hallo!", MB_OK); break; case ID_FILE_EXIT:EndDialog(hWndDlg, 0) break; case WM_CLOSE:EndDialog(hWndDlg, 0); break; default: return FALSE;} return TRUE;}[/CODE] what am i doing wrong??

Member Avatar
-1
12
Member Avatar

Well, im a beginner programmer, trying to make my own proggy in Dev C++ but i have massive problem with dialog, this doesnt work (using mdi example): mdi_unit.h [CODE]#define CM_WINDOW_TILEVERT 9084 #define CM_WINDOW_TILEHORZ 9083 #define CM_WINDOW_ARRANGE 9082 #define CM_WINDOW_TILE 9081 #define CM_WINDOW_CASCADE 9080 #define CM_EDIT_PASTE 9079 #define CM_EDIT_COPY 9078 #define CM_EDIT_CUT 9077 #define CM_EDIT_UNDO 9076 #define CM_EDIT_REDO 9075 #define CM_FILE_SAVEAS 9074 #define CM_FILE_SAVE 9073 #define CM_FILE_OPEN 9072 #define CM_FILE_EXIT 9071 #define CM_FILE_NEW 9070 #define CM_HELP_ABOUT 9069 #define CM_HELP_TIPS 9068 #define IDM_HELPCONTENTS 9067 #define IDM_HELPSEARCH 9066 #define IDM_HELPHELP 9065 #define CM_SHOW_MAINBAR 9064 #define CM_HIDE_MAINBAR 9063 #define CM_FORMAT_WORDWRAP 9062 #define CM_LAUNCH_CALCULATOR 9061 …

Member Avatar
0
6
Member Avatar

Hello all, im Mehh and this is my first post. Im also a rookie in programming and im making Multi Document Interface program from a MDI Example in DevC++. My problem is that i cannot change Font Size in MDI example and its so small that my friends cant even read it :S, if anyone can show me how to make it bigger i would be thankfull, Atleast Font size to be 12, Here is the source code im working on: [code=c] #include <windows.h> #include <commctrl.h> #include "mdi_unit.h" #define ID_STATUSBAR 4997 #define ID_TOOLBAR 4998 #define ID_MDI_CLIENT 4999 #define ID_MDI_FIRSTCHILD 50000 …

Member Avatar
0
3

The End.