![]() |
How can I select and selected font? |
Post Reply ![]() |
Author | |
scs7309 ![]() Newbie ![]() ![]() Joined: 05 January 2007 Location: Korea, South Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 05 January 2007 at 4:48am |
I attached CXTPControlFontComboBox object my Toolbar control.
Here is my question !!!
How can I select specific font when my program starting ?
and how can I selected font name when user selecting font ?
Sorry my poor english : )
int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)
{ CXTPToolBar* pToolBar = lpCreateControl->bToolBar? DYNAMIC_DOWNCAST(CXTPToolBar, lpCreateControl->pCommandBar): NULL; if (lpCreateControl->nID == ID_COMBO_FONTNAME && pToolBar && pToolBar->GetBarID() == IDR_MAINFRAME)
{ CXTPControlComboBox* pComboFont = new CXTPControlFontComboBox(); pComboFont->SetDropDownListStyle(FALSE); lpCreateControl->pControl = pComboFont; return TRUE;
} return FALSE; } ![]() |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
See Samples\UserInterface\GUI_OneNote sample
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
scs7309 ![]() Newbie ![]() ![]() Joined: 05 January 2007 Location: Korea, South Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
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 |