BindSample and CXTResizeDialog |
Post Reply |
Author | |
rock
Groupie Joined: 27 October 2005 Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 06 November 2007 at 3:00pm |
I have a dialog similar to the one used in the BindSample and I'd like to use CXTResizeDialog. However; no matter what anchor positions I give for the grid control ID, the grid never resizes. It is easily reproduced in the BindSample by changing it from a CDialog to a CXTResizeDialog, and by adding the following to InitDialog()...
SetResize(IDC_LIST_OPTIONS, SZ_TOP_LEFT, SZ_BOTTOM_LEFT);
SetResize(IDC_STATIC, SZ_BOTTOM_LEFT, SZ_BOTTOM_RIGHT);
SetResize(IDOK, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
SetResize(IDCANCEL, SZ_BOTTOM_RIGHT, SZ_BOTTOM_RIGHT);
SetResize(IDC_WORKSPACE, SZ_TOP_RIGHT, SZ_BOTTOM_RIGHT);
Is this not possible due to multiple CXTPPropertyGrids being used with the IDC_WORSPACE control? Or is there something else I need to do?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Obviously in last line you need add Resize not for IDC_WORKSPACE but for id of grid.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
rock
Groupie Joined: 27 October 2005 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
The grid in this particular sample has no ID. IDC_WORKSPACE is the placeholder control in the dialog template. This sample has 3 grids that are dynamically created and are shown or hidden based upon the tree selection in another control. Each grid is created with 0 passed for the ID.
So I went back to the sample and assigned each grid a unique ID and now it works properly (sort of, needs tweaking). Your answer did point me in the right direction. Thanks
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |