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
(http://img184.imageshack.us/img184/6803/sshot1hk0.th.png) (http://img184.imageshack.us/my.php?image=sshot1hk0.png)
thanks in forward
[attachment deleted by admin]
40 reads and 10 downloads
And nobody can help me?!? :'(
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
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
When I have the time I will sort out the appropriate code from TBPaint, probably this weekend.
thanks for you help i cannot found any pager control example
thanks donkey
regards
ragdog
Maybe that will be useful for me later..so I coded it :lol
[attachment deleted by admin]
thanks ramguru nice :U :U
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]
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
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.
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
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
Any ideas on why a subclassed toolbar wouldn't get the WM_COMMAND message?
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