Click here to Skip to main content
15,921,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do I say this... Pin
Oliver1237-Oct-06 4:26
Oliver1237-Oct-06 4:26 
AnswerRe: How do I say this... Pin
canerabali8-Oct-06 0:49
canerabali8-Oct-06 0:49 
QuestionDialog tab order Pin
Oliver1237-Oct-06 4:06
Oliver1237-Oct-06 4:06 
AnswerRe: Dialog tab order Pin
Michael Dunn7-Oct-06 7:59
sitebuilderMichael Dunn7-Oct-06 7:59 
AnswerRe: Dialog tab order Pin
Mark Salsbery7-Oct-06 8:15
Mark Salsbery7-Oct-06 8:15 
QuestionHow do I change icon and small icon for a windows class Pin
scody7-Oct-06 3:17
scody7-Oct-06 3:17 
AnswerRe: How do I change icon and small icon for a windows class Pin
Hamid_RT7-Oct-06 3:36
Hamid_RT7-Oct-06 3:36 
QuestionRe: How do I change icon and small icon for a windows class Pin
scody7-Oct-06 9:20
scody7-Oct-06 9:20 
Hi WhiteSky,

I have just tried the code as you suggested

<br />
	windowClass.cbSize = sizeof(WNDCLASSEX);<br />
	windowClass.style = CS_HREDRAW | CS_VREDRAW;<br />
	windowClass.lpfnWndProc = WndProc;<br />
	windowClass.cbClsExtra = 0;<br />
	windowClass.cbWndExtra = 0;<br />
	windowClass.hInstance = hInstance;<br />
	windowClass.hIcon = LoadIcon(windowClass.hInstance, (LPCTSTR)IDI_WINLOGO);	//default Icon<br />
	windowClass.hCursor = LoadCursor(NULL, IDC_ARROW);		//default arrow cursor<br />
	windowClass.hbrBackground = NULL;						//don't need background<br />
	windowClass.lpszMenuName = NULL;						// no menu<br />
	windowClass.lpszClassName = "AeroClass";<br />
	windowClass.hIconSm = LoadIcon(windowClass.hInstance, (LPCTSTR)IDI_WINLOGO);<br />


but still the default application icon is displayed. I would like to use standard icon Windows logo to be displayed on my application window, so I was using NULL in my code in the previous posting.

All I want to do is change the icon on my application window to Windows logo using standard icon macro IDI_WINLOGO.

Any help would be greatly appriciated.
Thanks

Scody
AnswerRe: How do I change icon and small icon for a windows class Pin
Waldermort7-Oct-06 4:25
Waldermort7-Oct-06 4:25 
AnswerRe: How do I change icon and small icon for a windows class Pin
Mark Salsbery7-Oct-06 8:31
Mark Salsbery7-Oct-06 8:31 
QuestionSimple MAPI Error !!! Pin
Vinod Sankaranarayanan7-Oct-06 3:07
Vinod Sankaranarayanan7-Oct-06 3:07 
AnswerRe: Simple MAPI Error !!! Pin
Hamid_RT7-Oct-06 4:10
Hamid_RT7-Oct-06 4:10 
GeneralRe: Simple MAPI Error !!! Pin
Vinod Sankaranarayanan7-Oct-06 4:26
Vinod Sankaranarayanan7-Oct-06 4:26 
GeneralRe: Simple MAPI Error !!! Pin
Hamid_RT7-Oct-06 6:53
Hamid_RT7-Oct-06 6:53 
GeneralRe: Simple MAPI Error !!! Pin
Hamid_RT19-Oct-06 7:54
Hamid_RT19-Oct-06 7:54 
GeneralRe: Simple MAPI Error !!! Pin
Vinod Sankaranarayanan20-Oct-06 4:12
Vinod Sankaranarayanan20-Oct-06 4:12 
GeneralRe: Simple MAPI Error !!! Pin
Hamid_RT20-Oct-06 6:47
Hamid_RT20-Oct-06 6:47 
QuestionInternet Settings Pin
Benlahrech .Dj7-Oct-06 2:22
Benlahrech .Dj7-Oct-06 2:22 
Questionincludeing class in dll Pin
Sarguna Reddiar7-Oct-06 1:32
Sarguna Reddiar7-Oct-06 1:32 
Questionmore information Pin
Sarguna Reddiar7-Oct-06 1:34
Sarguna Reddiar7-Oct-06 1:34 
AnswerRe: includeing class in dll Pin
Hamid_RT7-Oct-06 2:55
Hamid_RT7-Oct-06 2:55 
Questiongray item in context menu Pin
zon_cpp6-Oct-06 23:25
zon_cpp6-Oct-06 23:25 
AnswerRe: gray item in context menu Pin
Hamid_RT7-Oct-06 2:31
Hamid_RT7-Oct-06 2:31 
AnswerRe: gray item in context menu Pin
Michael Dunn7-Oct-06 8:02
sitebuilderMichael Dunn7-Oct-06 8:02 
GeneralRe: gray item in context menu Pin
zon_cpp7-Oct-06 22:02
zon_cpp7-Oct-06 22:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.