- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have just added a new option to my Win 32 menu.
Now I find that when I use a tool bar buttons, the button disappears.
Is there any simple reason for this?
Thanks,
David
Now I find that when I use a tool bar buttons, the button disappears.
Is there any simple reason for this?
Thanks,
David
Link Copied
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Post more details please -- what do you mean "disappears"? Is "a tool bar buttons" intended to be plural or singular?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jugoslav,
When I click on one button, that one button disapears.
The problem is probably caused by my windows - I have one window (application frame window), rather than two windows (frame + one child occupying the frames client area, minus the area occupied by the tool bar). I tried to get this to work before but gave up as I couldn't get it to work. Now adding this one menu item has made the problem much worse. I think I will have to try again with the two windows - but I wanted to check there was not a simple cause of the problem.
Thanks,
David
When I click on one button, that one button disapears.
The problem is probably caused by my windows - I have one window (application frame window), rather than two windows (frame + one child occupying the frames client area, minus the area occupied by the tool bar). I tried to get this to work before but gave up as I couldn't get it to work. Now adding this one menu item has made the problem much worse. I think I will have to try again with the two windows - but I wanted to check there was not a simple cause of the problem.
Thanks,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you have WS_CLIPCHILDREN .OR. WS_CLIPSIBLINGS in your frame window's style?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it has WS_CLIPCHILDREN.
I am now rewriting the program so there are two Windows, a Frame and inside it, a Child window, both will have WS_CLIPCHILDREN.
Thanks,
David
I am now rewriting the program so there are two Windows, a Frame and inside it, a Child window, both will have WS_CLIPCHILDREN.
Thanks,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I 'solved' the problem by causing a redraw of the toolbar after using the button.
It is not perfect as it causes the screen to flash, but is better than disapearing buttons.
lret=ShowWindow(hWndToolBar,SW_HIDE)
lret=ShowWindow(hWndToolBar,SW_SHOW)
David
It is not perfect as it causes the screen to flash, but is better than disapearing buttons.
lret=ShowWindow(hWndToolBar,SW_HIDE)
lret=ShowWindow(hWndToolBar,SW_SHOW)
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use InvalidateRect to obtain a flashless redraw (see neighbouring thread "Redrawing a dialog window"). Btw, did you try WS_CLIPSIBLINGS? That's supposed to force all child windows not to draw on each other's surface?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jugoslav,
I had WS_CLIPCHILDREN, adding WS_CLIPSIBLINGS made no difference.
Using InvalidateRec was no different to using ShowWindow - I still get a slight flash.
Tanks for your help, David
I had WS_CLIPCHILDREN, adding WS_CLIPSIBLINGS made no difference.
Using InvalidateRec was no different to using ShowWindow - I still get a slight flash.
Tanks for your help, David
![](/skins/images/872293744008A34B36F8ABF94A46CC66/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page