News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

toolbar

Started by ragdog, December 24, 2007, 08:48:49 AM

Previous topic - Next topic

ragdog

hi

I have a question how it works, I can scroll a toolbar with buttons
Do you have an idea or you can help me to find



thanks in forward

[attachment deleted by admin]

ragdog

40 reads and 10 downloads
And nobody can help me?!? :'(

ToutEnMasm

Hello,
Not a toolbar , but to be exact a rebar with a toolbar.
Search MSDN for rebar,and you have the answer.
you can also have a look on the definitive answer,there is much new but not much better
http://www.microsoft.com/msj/1298/controlspy3/controlspy3.aspx
You can also help you writing code with this:
http://www.masm32.com/board/index.php?topic=5323.msg39867#msg39867


MichaelW

Over the hour or so I spent looking, I could not find any information on scrolling a toolbar control in a rebar control, but I did find information on scrolling a toolbar control in a pager control:

http://msdn2.microsoft.com/en-us/library/bb760855.aspx

eschew obfuscation

donkey

When I have the time I will sort out the appropriate code from TBPaint, probably this weekend.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

ragdog

thanks for you help i cannot found any pager control example

thanks donkey

regards

ragdog

ramguru

Maybe that will be useful for me later..so I coded it  :lol

[attachment deleted by admin]

ragdog

thanks ramguru nice :U :U

Jupiter

a little addition to ramguru's code:

Quotev1.1
   
  • Status bar: displays clicked button ID
       
  • Bitmap masked
       
  • Gradient numbers (bitmap)
       
  • Manifest
       
  • Icon

[attachment deleted by admin]
EnJoy!

xandaz

   hey... I'm having some trouble with my toolbar. It's added as band in a rebar control but i can't get anything from WM_COMMAND. i click the buttons and nothing happens. can someone help? why is this?
   Someone send an example of WM_COMMAND with controls within a rebar control.
   Ty guys
   Bests from X

xandaz

    I'm still having problems with the rebar. I can get any wm_command or wm_notify from my toolbar. can someone help me?
   Thanks.

xandaz

   It seems the problem is solved. I used ToolbarID when creating the toolbar control hMenu==400h. Then i used command identifiers 401h, 402h and so on for the buttons. Don't know why it didn't work. Later I changed these identifiers in the way of indexes : 1,2,3... and so on and it seems to work. Why it didn't work is something i don't know. If someone has the answer, let him come forth.
   Bests from X

xandaz

   Well.... there was no problem there after all, although i've still having trouble with the WM_COMMAND message. Supposatelly, HIWORD wParam would be the handle of the toolbar in case the message is from a control which it is. Could it be because the toolbars are children to the rebar control?
   I haven't been getting much answers lately. I'm wondering if my posts are a bit silly.
   If that's the case then i'm sorry.
   Bye guys and best regards :U

xandaz

   Any ideas on why a subclassed toolbar wouldn't get the WM_COMMAND message?

xandaz

   Donkey,    I don't suppose you can explain how you keep the device context updated when there's a resizing opperation... Do you keep track of the drawing opperation and redo them? and what kind of control is the canvas made of ( in TBpaint that is )...Thanks