Talk:Windows Programming/Dialog Boxes

BOOL CALLBACK MyDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) {   switch(msg) {       case WM_INITDIALOG: return TRUE; case WM_DESTROY: EndDialog(hDlg, 0); return TRUE; }   return FALSE; }

Is the case statement supposed to fall through to the next case, or is this simply false laziness? Puckdropper (talk) 22:59, 12 December 2007 (UTC)


 * Never mind, when the program hits the return statement it won't go to the next case. I'd probably use a break; anyway, but that's just a style issue.  Puckdropper (talk) 01:40, 15 December 2007 (UTC)