-
October 31st, 2009, 12:55 AM
#1
[RESOLVED] Dialog Based application icon
How do I set the taskbar scrolling icon for a Dialog based application window. I need to set the icon which is displayed while user press ALT+TAB to switch between multiple open window. Usually it's done by
Code:
wc.hIconSm= LoadIcon (...)
while registering window class.. but how to achieve the same for dialog based application. I'm able to set title bar and exe icons by
Code:
SendMessage(hMain, WM_SETICON, (WPARAM)ICON_SMALL, (LPARAM)hIcon);
but what should I do for that icon ??
-
October 31st, 2009, 01:23 AM
#2
Re: Dialog Based application icon
-
October 31st, 2009, 01:32 AM
#3
Re: Dialog Based application icon
-
October 31st, 2009, 01:38 AM
#4
Re: Dialog Based application icon
Okay, in the future, can you post Win32 questions in the C++ and WinAPI forum? The Visual C++ forum is for VC questions related to MFC, WTL and ATL.
-
October 31st, 2009, 02:14 AM
#5
Re: Dialog Based application icon
See.. I can.. but in the VC++ forum we are getting replies more faster...
-
October 31st, 2009, 02:24 AM
#6
Re: Dialog Based application icon
You'll save me the trouble of moving it, if you post it in the correct forum. Thanks.
-
October 31st, 2009, 07:33 AM
#7
Re: Dialog Based application icon
Originally Posted by hypheni
See.. I can.. but in the VC++ forum we are getting replies more faster...
Nope, this is not true. Just more posts in VC++ forum make the VC++ forum queue longer.
Please, as much as possible, put your question(s) in the most appropriate forum and not in the "most rated" one.
-
October 31st, 2009, 07:42 AM
#8
Re: Dialog Based application icon
okaay.. now can anyone tell me the solution...
-
October 31st, 2009, 11:52 AM
#9
Re: Dialog Based application icon
56 Views but no new posts.. thats why I do not like to post in this forum..
@modarators
If I post non MFC topics in VC++ forum and people used to give some useful replies on that what is the wrong in that. Please do not move any post here. Its a request.
-
October 31st, 2009, 01:50 PM
#10
Re: Dialog Based application icon
Originally Posted by hypheni
Please do not move any post here. Its a request.
It doesn't work that way. Please post in the proper forum as we've politely asked you to. If you are a bit patient then someone will answer in this forum.
-
October 31st, 2009, 02:08 PM
#11
Re: Dialog Based application icon
I looked around the internet and didn't find any obvious samples. The problem is that native Win32 programming is getting pretty old.
At any rate, I'd recommend getting the book "Programming Windows, 5th Edition by Charles Petzold". It's the standard when it comes to native Win32 programming.
-
November 1st, 2009, 12:04 AM
#12
Re: Dialog Based application icon
ya. I own a e-copy of that book.. but that doesn't provide any such info regarding this. and also google cant help me to solve this.
-
November 1st, 2009, 03:08 AM
#13
Re: Dialog Based application icon
Okay. I have solved it. Actually I did it before but forget. Here is the code. May this will help others in future.
Code:
SetClassLong(hMain, GCL_HICON, (LONG)LoadIcon(hIns, (MAKEINTRESOURCE)IDI_ICON1));
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|