how to change window icon
-
other people tell me if i want to change the icon on the window,i must send WM_SECTION to window,so i write: in initinstance of app HICON hIcon=AfxGetApp() ->LoadIcon(IDI_ICON) ASSERT(hIcon) AfxGetMainWnd() ->SendMessage(WM_SECTION,TRUE,(LPARAM)hIcon) ,but when i compile note not declare WM_SECTION,why ,do you know?if true,tell me please.
-
other people tell me if i want to change the icon on the window,i must send WM_SECTION to window,so i write: in initinstance of app HICON hIcon=AfxGetApp() ->LoadIcon(IDI_ICON) ASSERT(hIcon) AfxGetMainWnd() ->SendMessage(WM_SECTION,TRUE,(LPARAM)hIcon) ,but when i compile note not declare WM_SECTION,why ,do you know?if true,tell me please.
vividtang wrote: ,but when i compile note not declare WM_SECTION Do you mean that you receive a compiler error? If so, it may be because that message does not exist, at least that I could find. What is it used for?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
vividtang wrote: ,but when i compile note not declare WM_SECTION Do you mean that you receive a compiler error? If so, it may be because that message does not exist, at least that I could find. What is it used for?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Not without some detailed information as to what you are wanting.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
other people tell me if i want to change the icon on the window,i must send WM_SECTION to window,so i write: in initinstance of app HICON hIcon=AfxGetApp() ->LoadIcon(IDI_ICON) ASSERT(hIcon) AfxGetMainWnd() ->SendMessage(WM_SECTION,TRUE,(LPARAM)hIcon) ,but when i compile note not declare WM_SECTION,why ,do you know?if true,tell me please.
Hi! I guess you want to use
**WM_SETICON**
and not**WM_SECTION**
... ;) The latter windows message doesn't exist. Regards, mYkel -
Hi! I guess you want to use
**WM_SETICON**
and not**WM_SECTION**
... ;) The latter windows message doesn't exist. Regards, mYkel