Jump to content
Sign in to follow this  
jennico

$WS_EX_TOOLWINDOW + Icon

Recommended Posts

jennico

from help file:

$WS_EX_TOOLWINDOW 0x00000080 Creates a tool window; that is, a window intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog box that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by typing ALT+SPACE.

how do i get the icon to the title bar ?

GUICreate("tool window",100,50,Default,Default,-1,0x80);$WS_EX_TOOLWINDOW 
GUISetIcon("shell32.dll",42)
GUICtrlCreateIcon("shell32.dll",42,0,0)
GUISetState()

While 1
    Sleep(1)
WEnd

thx

j.


Spoiler

I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.OixB7.jpgDon't forget this IP: 213.251.145.96

 

Share this post


Link to post
Share on other sites
jennico

GUICreate("tool window",100,50,Default,Default,0,0x80);$WS_EX_TOOLWINDOWoÝ÷ ÚØb²+0ØhºÛ2²g§¹»­²Ø¥z"ræk&Þh¬ºw^®ËZØ^â殶­sduT7&VFRgV÷C·FööÂvæF÷rgV÷C²ÃÃS¤uT6WE7GÆRòb33cµu5ôUõDôôÅtäDõ

this is funny, but no icon either.

j.


Spoiler

I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.OixB7.jpgDon't forget this IP: 213.251.145.96

 

Share this post


Link to post
Share on other sites
ResNullius

Are you basically looking for a regular GUI that doesn't show up in the task bar?

Or do you want something that looks and behaves just like a TOOLWINDOW but with an icon in the title bar?

Edit: by the way, I think when the helpfile says If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by typing ALT+SPACE. what it really means is:

"Tool windows don't have icons in the titlebar, so if your tool window has a sysmenu, the only way to access it is by typing ALT+SPACE" At least that's what I gather from reading other info about the TOOLWINDOW EXStyle.

Edited by ResNullius

Share this post


Link to post
Share on other sites
jennico

hmmm, so it is only a bad formulation ?

definitely no icons for tool windows ?

j.


Spoiler

I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.OixB7.jpgDon't forget this IP: 213.251.145.96

 

Share this post


Link to post
Share on other sites
ResNullius

hmmm, so it is only a bad formulation ?

definitely no icons for tool windows ?

j.

These two options will give you a GUI with a Title bar icon and no presence in the task bar:

This one by smashly doesn't show up in ALT-TAB list: http://www.autoitscript.com/forum/index.ph...st&p=562033

This one by martin does: http://www.autoitscript.com/forum/index.ph...st&p=506311

Edited by ResNullius

Share this post


Link to post
Share on other sites
jennico

nono, i want a tool window


Spoiler

I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.OixB7.jpgDon't forget this IP: 213.251.145.96

 

Share this post


Link to post
Share on other sites
ResNullius

nono, i want a tool window

Not going to happen (at least easily).

According to: MS Knowledge Base PRB: WS_EX_TOOLWINDOW Windows Do Not Show System Menu Icon

This behavior is by design

I have read some about hooking window creation/painting to add extra buttons to the caption area, and I'm sure you could simulate an icon with a custom button, but it sure don't look simple.

( http://catch22.net/tuts/titlebar & http://www.codeproject.com/KB/vb/transmenu...tlebuttons.aspx )"

Edited by ResNullius

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×