Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . SOLVED Pin
Vaclav_18-Sep-10 6:04
Vaclav_18-Sep-10 6:04 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . SOLVED Pin
Richard MacCutchan18-Sep-10 6:10
mveRichard MacCutchan18-Sep-10 6:10 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
garaber26-Jan-11 12:32
garaber26-Jan-11 12:32 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
Richard MacCutchan26-Jan-11 22:32
mveRichard MacCutchan26-Jan-11 22:32 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
garaber27-Jan-11 2:53
garaber27-Jan-11 2:53 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
garaber27-Jan-11 3:05
garaber27-Jan-11 3:05 
GeneralRe: How to access BITMAP bmBits - getting void* - unknown size error . Pin
Richard MacCutchan27-Jan-11 3:19
mveRichard MacCutchan27-Jan-11 3:19 
QuestionAdd iamge to subbutton in RibbonStatusbar failed? Pin
coolhem17-Sep-10 17:23
coolhem17-Sep-10 17:23 
Adding ButtonsGroup with subbuttons to RibbonStatusbar. the buttongroup's button have showed images,but subbuttons didn't.here is my code, It was so surprising to me.

	std::auto_ptr<CMFCRibbonButtonsGroup> apSBGroup(new CMFCRibbonButtonsGroup);<br />
<br />
	CMFCToolBarImages images1;<br />
	images1.SetImageSize(CSize(16, 16));<br />
	images1.Load(IDB_TOOLBAR_SNAPTOOL);<br />
<br />
	apSBGroup->SetImages(&images1, NULL, NULL);<br />
	apSBGroup->SetID(ID_GROUP_SNOP);<br />
<br />
	apSBGroup->AddButton(new CMFCRibbonButton(ID_DYNA, NULL, 0));<br />
<br />
	std::auto_ptr<CMFCRibbonButton> pBtSnopPt(new CMFCRibbonButton(ID_HEAD, NULL, 5));<br />
		pBtSnopPt->AddSubItem(new CMFCRibbonButton(ID_HEAD, NULL, 5));<br />
		pBtSnopPt->AddSubItem(new CMFCRibbonButton(ID_CENTER, NULL, 6));<br />
		pBtSnopPt->AddSubItem(new CMFCRibbonButton(ID_CROSS, NULL, 7));<br />
		pBtSnopPt->AddSubItem(new CMFCRibbonButton(ID_LIMIT, NULL, 8));<br />
		pBtSnopPt->AddSubItem(new CMFCRibbonButton(ID_PEAK, NULL, 9));<br />
		pBtSnopPt->AddSubItem(new CMFCRibbonButton(ID_ON, NULL, 10));<br />
	apSBGroup->AddButton(pBtSnopPt.release());<br />
<br />
	std::auto_ptr<CMFCRibbonButton> pBtPopCoor(new CMFCRibbonButton(ID_NUMBER, NULL, 11));<br />
		pBtPopCoor->AddSubItem(new CMFCRibbonButton(ID_NUMBER, NULL, 11));<br />
		pBtPopCoor->AddSubItem(new CMFCRibbonButton(ID_THREEOK, NULL, 12));<br />
		pBtPopCoor->AddSubItem(new CMFCRibbonButton(ID_THREE, NULL, 13));<br />
		pBtPopCoor->AddSubItem(new CMFCRibbonButton(ID_GRID, NULL, 14));<br />
		pBtPopCoor->AddSubItem(new CMFCRibbonButton(ID_RELATEXY, NULL, 15));<br />
		pBtPopCoor->AddSubItem(new CMFCRibbonButton(ID_NEWOXOY, NULL, 16));<br />
	apSBGroup->AddButton(pBtPopCoor.release());<br />
<br />
	m_wndRibStatusBar.AddExtendedElement(apSBGroup.release(), _T(""));<br />

QuestionDouble average Pin
Tim Dappen17-Sep-10 12:09
Tim Dappen17-Sep-10 12:09 
AnswerRe: Double average Pin
Maximilien17-Sep-10 12:44
Maximilien17-Sep-10 12:44 
GeneralRe: Double average Pin
Tim Dappen17-Sep-10 12:56
Tim Dappen17-Sep-10 12:56 
GeneralRe: Double average Pin
Richard MacCutchan17-Sep-10 22:07
mveRichard MacCutchan17-Sep-10 22:07 
QuestionRe: Double average Pin
David Crow17-Sep-10 15:58
David Crow17-Sep-10 15:58 
AnswerRe: Double average Pin
Maximilien17-Sep-10 16:59
Maximilien17-Sep-10 16:59 
GeneralRe: Double average Pin
David Crow18-Sep-10 9:33
David Crow18-Sep-10 9:33 
AnswerRe: Double average Pin
Tim Craig18-Sep-10 7:08
Tim Craig18-Sep-10 7:08 
AnswerRe: Double average Pin
Stephen Hewitt17-Sep-10 19:19
Stephen Hewitt17-Sep-10 19:19 
AnswerRe: Double average Pin
Aescleal18-Sep-10 8:26
Aescleal18-Sep-10 8:26 
GeneralRe: Double average Pin
Stephen Hewitt18-Sep-10 20:57
Stephen Hewitt18-Sep-10 20:57 
GeneralRe: Double average [modified] Pin
Stefan_Lang28-Sep-10 2:28
Stefan_Lang28-Sep-10 2:28 
QuestionUsing Windows DataGridViewTool Pin
Danzy8317-Sep-10 4:42
Danzy8317-Sep-10 4:42 
AnswerRe: Using Windows DataGridViewTool [modified] Pin
Cool_Dev17-Sep-10 5:15
Cool_Dev17-Sep-10 5:15 
GeneralRe: Using Windows DataGridViewTool Pin
Danzy8317-Sep-10 5:34
Danzy8317-Sep-10 5:34 
GeneralRe: Using Windows DataGridViewTool Pin
Cool_Dev17-Sep-10 5:38
Cool_Dev17-Sep-10 5:38 
AnswerRe: Using Windows DataGridViewTool Pin
Rolf Kristensen20-Sep-10 10:10
Rolf Kristensen20-Sep-10 10:10 

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.