Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I set the icon thats displayed in the caption of a frame window or dialog?

caption dialog frame Icon window
0
Posted

How do I set the icon thats displayed in the caption of a frame window or dialog?

0

You first load the icon from your program’s resources, then set it as the window’s current icon. You should set both the large (32×32) and small (16×16) icons; the large icon is used in the Alt+Tab window, and the small icon is used in the caption bar and the Taskbar. Note that the code generated by the MFC AppWizard is buggy and does not properly set the small icon. The LoadIcon() function can only load 32×32 icons; to load 16×16 icons, use LoadImage().

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123