Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
508 B

  1. #include "windows.h"
  2. UINT GetRadioStatus(HWND hDlg, UINT uiId)
  3. {
  4. return SendMessage(GetDlgItem(hDlg,uiId),
  5. BM_GETCHECK,
  6. (WPARAM) 0,
  7. (LPARAM) 0
  8. );
  9. }
  10. UINT SetRadioStatus(HWND hDlg, UINT uiId, UINT uiStatus)
  11. {
  12. return SendMessage(GetDlgItem(hDlg,uiId),
  13. BM_SETCHECK,
  14. (WPARAM) uiStatus,
  15. (LPARAM) 0
  16. );
  17. }