|  | 
| Dialog panes with scrollbars? | 
| Post Reply   | 
| Author | |
| znakeeye   Senior Member     Joined: 26 July 2006 Status: Offline Points: 1672 |  Post Options  Thanks(0)  Quote  Reply  Topic: Dialog panes with scrollbars? Posted: 27 March 2009 at 2:45am | 
| 
   I have a couple of panes where the child is a dialog window. When the pane is resized the underlying dialog is of course obscured by the borders. For panes, it would be really nice if CXTResizeDialog could somehow show scrollbars when parts of the dialog are obscured! Something like "Toolbox" in VC++.
 Is this possible at this point? If not, I believe this would be great to have. | |
| 
     PokerMemento - http://www.pokermemento.com/
     | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 30 March 2009 at 2:11am | 
| 
   Hi,
 Actually CXTPPropertyPage supports it - so you can try replace CDialog parent class to CXTPPropertySheet and in OnInitDialog add  m_totalDev = CSize(200, 200); // Size of client | |
| 
     Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS | |
|  | |
| znakeeye   Senior Member     Joined: 26 July 2006 Status: Offline Points: 1672 |  Post Options  Thanks(0)  Quote  Reply  Posted: 30 March 2009 at 3:15am | 
| 
   Great! I'll have a look. Thanks!
    | |
| 
     PokerMemento - http://www.pokermemento.com/
     | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 30 March 2009 at 4:58am | 
| 
   only "..CDialog parent class to CXTPPropertyPage.."
    | |
| 
     Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS | |
|  | |
| znakeeye   Senior Member     Joined: 26 July 2006 Status: Offline Points: 1672 |  Post Options  Thanks(0)  Quote  Reply  Posted: 30 March 2009 at 3:15pm | 
| 
   Thanks, it works. 
 Perhaps CXTPPropertyPage should have this functionality somewhere? BOOL CMyPane::OnInitDialog() { VERIFY(CXTPPropertyPage::OnInitDialog()); CDialogTemplate dt(m_hDialogTemplate); dt.Load(m_lpszTemplateName); CSize size(0, 0); dt.GetSizeInPixels(&size);     ... } Perhaps configurable by a flag, or a function? Just an idea. It would make sense. | |
| 
     PokerMemento - http://www.pokermemento.com/
     | |
|  | |
| 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 |