Link to home
Start Free TrialLog in
Avatar of mromeo
mromeo

asked on

Can I put an icon in the top left or top right corner of my CStatic control?


I am able to add an icon to a CStatic control, but it always either resizes the control and puts it at it's top left corner (using SS_ICON flag) or doesn't show up at all (using SS_CENTERIMAGE flag).  I want to put a small icon in the top left (or right) corner of a CStatic control.  Anybody know how I can do this?  Also, anybody know which create flags I CANNOT use if I want to put an icon in it.  I currently create controls  with the following flags:

WS_VISIBLE | WS_CHILD | SS_LEFT | SS_LEFTNOWORDWRAP | WS_TABSTOP | WS_BORDER

which ones do I have to remove to get the icon to appear?

Thanks.



ASKER CERTIFIED SOLUTION
Avatar of Nass89
Nass89
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial