Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How can I select and selected font?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can I select and selected font?

 Post Reply Post Reply
Author
Message
scs7309 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 January 2007
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote scs7309 Quote  Post ReplyReply Direct Link To This Post Topic: How can I select and selected font?
    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;
}
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2007 at 8:52am
Hi,
 
See Samples\UserInterface\GUI_OneNote  sample
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
scs7309 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 January 2007
Location: Korea, South
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote scs7309 Quote  Post ReplyReply Direct Link To This Post Posted: 07 January 2007 at 11:51pm
thanks ~ : )
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.