![]() |
How to extend height CXTPControlEdit. |
Post Reply ![]() |
Author | |
ledled ![]() Newbie ![]() Joined: 18 November 2007 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() Posted: 05 December 2007 at 1:23am |
Hello,
I want to make CXTPControlEdit with the height for two lines. However, though MulitiLine can do, height for two lines can't be realized.
-----------------------------------------
int CToolKitTestDlgDlg::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)
{ switch(lpCreateControl->nID){ case ID_TEST_A: { CXTPControlEdit* pControlEdit = new CXTPControlEdit(); pControlEdit->SetEditStyle(ES_MULTILINE); pControlEdit->SetWidth(100); pControlEdit->SetHeight(100);
pControlEdit->SetFlags(xtpFlagControlStretched); lpCreateControl->pControl = pControlEdit; return TRUE; } case ID_TEST_B: break; case ID_TEST_C: break; } return FALSE; } |
|
![]() |
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 |