CSDN博客

img haiheng

SendMessage(, WM_SETICON, , ,);设置对话框图标

发表于2004/10/27 14:30:00  3940人阅读

分类: [一星珠]windows核心编程

// Sets the dialog box icons
inline void chSETDLGICONS(HWND hwnd, int idi) {
   SendMessage(hwnd, WM_SETICON, TRUE,  (LPARAM)
      LoadIcon((HINSTANCE) GetWindowLongPtr(hwnd, GWLP_HINSTANCE),
         MAKEINTRESOURCE(idi)));
   SendMessage(hwnd, WM_SETICON, FALSE, (LPARAM)
      LoadIcon((HINSTANCE) GetWindowLongPtr(hwnd, GWLP_HINSTANCE),
      MAKEINTRESOURCE(idi)));
}
阅读全文
0 0

相关文章推荐

img
取 消
img