|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
violet zhu
|
Apr 5, 2005 - 7:47 PM
|
i derived a class CToolBarForm from CExtControlBar,and added some CExtButton to is ClientArea.but the first button had the Size of it’s Parent,just like a background.when the parent got the fcous ,the first child covers others ,then i could not see them.
|
|
Technical Support
|
Apr 6, 2005 - 3:05 AM
|
The CExtControlBar class is designed to be a container for one child window only. The resizable control bar makes this single child window fill all its client area. The CExtResizableDialog class is usually very handy for this purpose because it allows you to anchor the dialog controls so that they can be repositioned automatically. So, you may just create a dialog template resource with WS_CHILD and WS_VISIBLE window styles applied and use it as a single child window of your resizable control bar.
|
|
violet zhu
|
Apr 6, 2005 - 11:14 PM
|
I use the CExtResizeableDialog . but when i click the button on it, the function mapped to the Button does not be Called. why? i want to make the Button to be a CBitmapButton . when i have the chance to associate Bitmap with the Button?
|
|
Technical Support
|
Apr 8, 2005 - 4:40 AM
|
CExtResizeableDialog is inherited from the CDialog and you should not encounter any problems with handling button clicks.
So, it seems the error is somewhere in your code. Try to double click the button in the dialog editor so that the framework can create the command handler automatically. To assign a bitmap to the button, you can use the CExtButton::SetIcon method as we told you earlier. If you cannot do this yourself, just send us your sample project and a brief description what is difficult for you and we will help you.
|
|