   Win32 Api Show/Hide Small Icon?
  hello, im having alot of trouble trying to figure out a way to get create a window with the following features via win32 api..1-No Small Icon in Top Left Corner of Window2-Has A Title (Caption)3-No Maximize/Minimize Button4-Close Buttonsimplying having WS_SYSMENU as the style allows me to have all of these except #1, what can i do to achieve these 4 things?thanks in advance everyone.   
  1. Set the hIconSm member of your WNDCLASSEX struct to NULL (Although that gets rid of the taskbar icon too - they're the same thing). If you want to just not show an icon in your app, you'll have to render the window frame yourself (Look into WM_NCPAINT).2. WS_OVERLAPPED3. WS_OVERLAPPEDWINDOW & ~(WS_MAXIMIZE | WS_MINIMIZE) (I think, I probably got tyhe flags wrong)4. I can't remember how offhand, but you change the system menu to remove the "Close" option.   ;  yes, i dont want the icon to show up at all at the top left (title should take over its place) and i need a close button as well, whats the easiest way i can do this?if i set the small icon to null it just comes up with a default iconthank you   ;  You can't have a close button and no icon.  WS_DLGFRAME will give you a window with no icon, but also with no buttons at all.  If you want something else, you'll have to draw the frame yourself (like Evil Steve said).;  ok thanks very much guys   ;Quote:Original post by MJPYou can't have a close button and no icon. Of course you can !(extended)   ;Quote:Original post by george135Quote:Original post by MJPYou can't have a close button and no icon. Of course you can !(extended)How? If your app has a title bar, it has to have an icon. And if you don't have a title bar, you can't have a close button...   ;  ok guys, ive been looking into WM_NCPAINT but i just cant seem to understand what i exactly i need to do when i catch this message. Im pretty new to windows programming in c++ using api.I know need to draw over the caption area, but how exactly do i do this? And what kind of window style do i need to draw over to have a close button, with no icon.The MessageBox() window is exactly the type of window style im striving for if that helps.   ;Quote:Original post by b1gjo3The MessageBox() window is exactly the type of window style im striving for if that helps.Do you want a window or a dialog box? You can get that style easily with DialogBox().   ;Quote:If your app has a title bar, it has to have an iconNo.As I said, change the extended style to remove the icon...   