Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionadd WM_SETFONT message handle in MFC Pin
includeh1027-May-11 5:37
includeh1027-May-11 5:37 
QuestionRe: add WM_SETFONT message handle in MFC Pin
David Crow27-May-11 6:06
David Crow27-May-11 6:06 
AnswerRe: add WM_SETFONT message handle in MFC Pin
వేంకటనారాయణ(venkatmakam)27-May-11 6:12
వేంకటనారాయణ(venkatmakam)27-May-11 6:12 
QuestionRe: add WM_SETFONT message handle in MFC Pin
David Crow27-May-11 6:14
David Crow27-May-11 6:14 
AnswerRe: add WM_SETFONT message handle in MFC Pin
Luc Pattyn27-May-11 6:53
sitebuilderLuc Pattyn27-May-11 6:53 
GeneralRe: add WM_SETFONT message handle in MFC Pin
David Crow27-May-11 7:05
David Crow27-May-11 7:05 
AnswerRe: add WM_SETFONT message handle in MFC Pin
Mark Salsbery27-May-11 7:03
Mark Salsbery27-May-11 7:03 
QuestionCToolbar Pin
si_6927-May-11 5:19
si_6927-May-11 5:19 
Hi

i am using a toolbar in a PropertyPage as part of a wizard

This works fine the first time, but if i access the wizard again, and that particular page then the toolbar fails to load

Can anyone help

im using the below code

if(!m_toolBar3.CreateEx(this,  WS_CHILD | WS_VISIBLE | CBRS_TOP |  CBRS_TOOLTIPS |CBRS_FLYBY |  TBBS_BUTTON) || !m_toolBar3.LoadToolBar(IDR_TOOLBAR1))
			AfxMessageBox("failed");

			// a small gap between buttons	
	m_toolBar3.SetButtonInfo(m_toolBar3.CommandToIndex(ID_FILE_SAVE)+1,ID_SEPARATOR,TBBS_SEPARATOR,5);
	m_toolBar3.SetButtonInfo(m_toolBar3.CommandToIndex(ID_EDIT_DELETE)+1,ID_SEPARATOR,TBBS_SEPARATOR,5);
	m_toolBar3.SetButtonInfo(m_toolBar3.CommandToIndex(ID_EDIT_UNDO)+1,ID_SEPARATOR,TBBS_SEPARATOR,5);
	m_toolBar3.SetButtonInfo(m_toolBar3.CommandToIndex(ID_APP_ABOUT)+1,ID_SEPARATOR,TBBS_SEPARATOR,5);
	m_toolBar3.SetButtonInfo(m_toolBar3.CommandToIndex(ID_COLOUR)+1,ID_SEPARATOR,TBBS_SEPARATOR,5);
	m_toolBar3.SetButtonStyle(m_toolBar3.CommandToIndex(ID_BOLD),TBBS_CHECKBOX);
	m_toolBar3.SetButtonStyle(m_toolBar3.CommandToIndex(ID_UNDERLINE),TBBS_CHECKBOX);
	m_toolBar3.SetButtonStyle(m_toolBar3.CommandToIndex(ID_ITALIC),TBBS_CHECKBOX);
	m_toolBar3.SetButtonStyle(m_toolBar3.CommandToIndex(ID_PARAGRAPH_LEFT),TBBS_CHECKGROUP);
	m_toolBar3.SetButtonStyle(m_toolBar3.CommandToIndex(ID_PARAGRAPH_CENTER),TBBS_CHECKGROUP);
	m_toolBar3.SetButtonStyle(m_toolBar3.CommandToIndex(ID_PARAGRAPH_RIGHT),TBBS_CHECKGROUP);
	m_toolBar3.SetButtonStyle(m_toolBar3.CommandToIndex(ID_PARAGRAPH_BULLETED),TBBS_CHECKBOX);

        RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST,0);
	m_toolBar3.MoveWindow( 18, 134,450, 30, 1 );


thanks

Simon
QuestionSetWindowRgn Menu Problem Pin
guojianbo27-May-11 1:18
guojianbo27-May-11 1:18 
QuestionRe: SetWindowRgn Menu Problem Pin
వేంకటనారాయణ(venkatmakam)27-May-11 3:34
వేంకటనారాయణ(venkatmakam)27-May-11 3:34 
AnswerRe: SetWindowRgn Menu Problem Pin
guojianbo29-May-11 15:42
guojianbo29-May-11 15:42 
GeneralRe: SetWindowRgn Menu Problem Pin
guojianbo30-May-11 0:53
guojianbo30-May-11 0:53 
QuestionTO EVRY BODY html path in .lnk file Pin
limelect26-May-11 23:52
limelect26-May-11 23:52 
AnswerRe: TO EVRY BODY html path in .lnk file Pin
_AnsHUMAN_ 27-May-11 0:58
_AnsHUMAN_ 27-May-11 0:58 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
Richard MacCutchan27-May-11 1:16
mveRichard MacCutchan27-May-11 1:16 
QuestionRe: TO EVRY BODY html path in .lnk file Pin
Niklas L27-May-11 1:14
Niklas L27-May-11 1:14 
AnswerRe: TO EVRY BODY html path in .lnk file Pin
Richard MacCutchan27-May-11 1:16
mveRichard MacCutchan27-May-11 1:16 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
Niklas L27-May-11 1:24
Niklas L27-May-11 1:24 
AnswerRe: TO EVRY BODY html path in .lnk file Pin
Richard MacCutchan27-May-11 1:47
mveRichard MacCutchan27-May-11 1:47 
AnswerRe: TO EVRY BODY html path in .lnk file Pin
Luc Pattyn27-May-11 1:59
sitebuilderLuc Pattyn27-May-11 1:59 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
Richard MacCutchan27-May-11 2:38
mveRichard MacCutchan27-May-11 2:38 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
Luc Pattyn27-May-11 2:56
sitebuilderLuc Pattyn27-May-11 2:56 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
Richard MacCutchan27-May-11 3:05
mveRichard MacCutchan27-May-11 3:05 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
Luc Pattyn27-May-11 3:11
sitebuilderLuc Pattyn27-May-11 3:11 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
limelect27-May-11 8:30
limelect27-May-11 8:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.