AutoSize Quick Launch ToolBar

  • Thread starter Thread starter Mauro
  • Start date Start date
M

Mauro

How can i resize (autoSize) the Quick Launch Toolbar?
I try to send TB_AUTOSIZE Message to it but doesn't work. :-(

Thx.

Mauro.
 
Mauro,

The TB_AUTOSIZE message is for toolbars, not the quick launch bars (they
are different cotnrols all together).

There is no message available to auto-size the bar. The best you could
do is try and calculate the size yourself, and then set the bar. You can do
this by making a call to the SHAppBarMessage API function through the
P/Invoke layer, passing the ABM_SETPOS message.

Check the documentation for the SHAppBarMessage function for the
messages you can send to the application bar (watch for line wrap):

http://whidbey.msdn.microsoft.com/l...shell/reference/functions/shappbarmessage.asp

Hope this helps.
 
Nicholas Paldino [.NET/C# MVP] ha usato la sua tastiera per scrivere :

[CUT]

Thanks!! :)

Mauro
 
Nicholas Paldino [.NET/C# MVP] ha detto questo martedì :
Mauro,

The TB_AUTOSIZE message is for toolbars, not the quick launch bars (they
are different cotnrols all together).

There is no message available to auto-size the bar. The best you could
do is try and calculate the size yourself, and then set the bar. You can do
this by making a call to the SHAppBarMessage API function through the
P/Invoke layer, passing the ABM_SETPOS message.

Check the documentation for the SHAppBarMessage function for the
messages you can send to the application bar (watch for line wrap):

http://whidbey.msdn.microsoft.com/l...shell/reference/functions/shappbarmessage.asp

Hope this helps.


--

It didn't work :(

Mauro
 
Back
Top