The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

What controls the window's system menu icon?

The icon in the top left corner of a window, the one that brings down Restore, Move, Size, Minimize, Maximize, Close.  That one.  Where do you set the icon for that?

It doesn't seem to be window class hIcon, and it doesn't seem to be hIconSm.

What gives?
Michael B
Friday, August 05, 2005
Send a WM_SETICON to the window.
Alex Send private email
Friday, August 05, 2005

Oddly enough, an icon loaded by doing LoadIcon(NULL,"FooIcon");  is fine for the window class registration, but for WM_SETICON, you need to have done LoadIcon(GetModuleName(NULL),"FooIcon");

The later works for window class registration just as well.
Michael B Send private email
Saturday, August 06, 2005

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
Powered by FogBugz