Win32 API Examples
» Create and play a wave signal
» Create a modal dialog box
» Create a message box
» Create a save dialog box
» Create an open dialog box
» Enable/Disable window items
» Set text in edit controls
» Get text from edit controls
» Set integer in edit controls
» Get integer from edit controls
» Open a homepage
» Get size of screen
» Get/Set position of mouse
» Set/Read check box
» Use Progress Bars

BOOL CALLBACK DialogProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARAM lParam) 
{ 
   switch(message)
   {
      case WM_INITDIALOG:
         break;

      case WM_COMMAND:
         switch(LOWORD(wParam))
         {
            case IDC_OK:
               EndDialog(hWndDlg, IDC_OK);
               break;
         }
         break;

      default:
         return false;
   }

   return true;
}

DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_MY_DIALOG), hWnd, DialogProc);
Copyright (c) 2004 PerErik Klarenfjord, All Rights Reserved
All trademarks are the property of their owners
Any actions you take after reading this website are your own responsibility
MADE IN SWEDEN
Hosted by GMQ