Tuesday, March 24, 2009

Attach Icon to the Title bar of Dialog-based Application


HICON hIcon = LoadIcon (hInst, MAKEINTRESOURCE (DLG_ICON));
SendMessage (hwnd, WM_SETICON, (WPARAM) ICON_SMALL, (LPARAM) hIcon);

No comments:

Post a Comment