30 case rad1:
return "rad1";
31 case rad2:
return "rad2";
32 case rad3:
return "rad3";
33 case psh1:
return "psh1";
34 case rad5:
return "rad5";
35 case rad6:
return "rad6";
36 case rad7:
return "rad7";
37 case IDOK:
return "OK button";
38 case IDCANCEL:
return "Cancel button";
39 default:
return "(unknown)";
53 HWND hRad1, hRad2, hRad3, hPsh1, hRad5, hRad6, hRad7, hOK, hCancel;
211 HWND hRad1, hRad2, hRad3, hPsh1, hRad5, hRad6, hRad7, hOK, hCancel;
static const char * GetNameFromHWND(HWND hwnd)
static BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam)
INT_PTR CALLBACK RadioButtonDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static void DoTest2(HWND hwnd)
static void DoTest1(HWND hwnd)
static POINT GetCtrlCenter(HWND hCtrl)
static void OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
static const char * GetNameFromID(INT ID)
static void DoTest3(HWND hwnd)
#define HANDLE_MSG(hwnd, message, fn)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
#define SW_SHOWNOACTIVATE
HWND WINAPI GetNextDlgTabItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
HWND WINAPI GetNextDlgGroupItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
int WINAPI GetDlgCtrlID(_In_ HWND)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)