Click here to Skip to main content
15,888,286 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Reading from a file in C++ Windows Application Forms Pin
Richard MacCutchan28-Feb-17 6:27
mveRichard MacCutchan28-Feb-17 6:27 
GeneralRe: Reading from a file in C++ Windows Application Forms Pin
Member 1300044128-Feb-17 9:15
Member 1300044128-Feb-17 9:15 
GeneralRe: Reading from a file in C++ Windows Application Forms Pin
Richard MacCutchan28-Feb-17 21:27
mveRichard MacCutchan28-Feb-17 21:27 
QuestionRe: Reading from a file in C++ Windows Application Forms Pin
David Crow28-Feb-17 6:31
David Crow28-Feb-17 6:31 
QuestionBitmap for dialog background questions Pin
frqftgbdafr27-Feb-17 13:25
frqftgbdafr27-Feb-17 13:25 
AnswerRe: Bitmap for dialog background questions Pin
_Flaviu27-Feb-17 20:21
_Flaviu27-Feb-17 20:21 
GeneralRe: Bitmap for dialog background questions Pin
frqftgbdafr28-Feb-17 2:06
frqftgbdafr28-Feb-17 2:06 
QuestionRibbon UI, wrong ordering of ribbon elements ? Pin
Maximilien27-Feb-17 8:02
Maximilien27-Feb-17 8:02 
I am trying to order a set of buttons in a ribbon bar.

The code below should create a ribbon with the layout (sorry bad paint drawing)

See expected layout : Ribbon Layout - Album on Imgur

But I get this : Ribbon Layout - Album on Imgur

Where the 3 buttons (zoom window, zoom in and zoom out) are placed on the right of the gallery.

I am not certain what I do wrong here, everything looks nicely coded !

Any insights, help, hints or tips ?
m_wndRibbonBar.Create(this);

CMFCRibbonCategory* category = m_wndRibbonBar.AddCategory(_TEXT("Test"), ITB_HOME_CATEGORY_16X16, ITB_HOME_CATEGORY_32X32 );

CMFCRibbonPanel* panel = category->AddPanel(_TEXT("Stuff"));

panel->Add(new CMFCRibbonButton(IDM_VIEW_ZOOM_ALL, _T("Zoom All"), 0, 0, FALSE));

panel->AddSeparator();

panel->Add(new CMFCRibbonButton(IDM_VIEW_ZOOM_WINDOW, _T("Zoom Window"), 1, -1, FALSE));
panel->Add(new CMFCRibbonButton(IDM_VIEW_ZOOM_IN, _T("Zoom In"), 26, -1, FALSE));
panel->Add(new CMFCRibbonButton(IDM_VIEW_ZOOM_OUT, _T("Zoom Out"), 27, -1, FALSE));

panel->AddSeparator();

CMFCRibbonGallery* viewRibbonGallery = new CMFCRibbonGallery(ID_HOME_VIEWS_RIBBON_BUTTON, _T("Views"), 7, 1, IDB_HOME_VIEWS_PALETTE_32X32, 32);
panel->Add(viewRibbonGallery);
panel->AddSeparator();

// shaded... 
CMFCRibbonButtonsGroup* viewTypeGroup = new CMFCRibbonButtonsGroup;
viewTypeGroup->AddButton(new CMFCRibbonButton(IDM_VIEW_MODE_NORMAL, _TEXT("Normal"), 20, FALSE));
viewTypeGroup->AddButton(new CMFCRibbonButton(IDM_VIEW_MODE_SHADED, _TEXT("Shaded"), 21, FALSE));
viewTypeGroup->AddButton(new CMFCRibbonButton(IDM_VIEW_MODE_WIREFRAME, _TEXT("Wireframe"), 22, FALSE));
panel->Add(viewTypeGroup);

CMFCRibbonButtonsGroup* wireFrameTypeGroup = new CMFCRibbonButtonsGroup;
wireFrameTypeGroup->AddButton(new CMFCRibbonButton(IDM_VIEW_WIREFRAME_BOUNDARY, _TEXT("Boundary"), 23, FALSE));
wireFrameTypeGroup->AddButton(new CMFCRibbonButton(IDM_VIEW_WIREFRAME_ISOLINE, _TEXT("Isoline"), 24, FALSE));
wireFrameTypeGroup->AddButton(new CMFCRibbonButton(IDM_VIEW_WIREFRAME_MESH, _TEXT("Mesh"), 25, FALSE));
panel->Add(wireFrameTypeGroup);
I'd rather be phishing!

QuestionVisual c++ android app development Pin
Cwash26-Feb-17 23:37
Cwash26-Feb-17 23:37 
AnswerRe: Visual c++ android app development Pin
Richard MacCutchan27-Feb-17 0:26
mveRichard MacCutchan27-Feb-17 0:26 
QuestionBoost Spirit: Parse an int into a string. Pin
Maximilien21-Feb-17 2:54
Maximilien21-Feb-17 2:54 
QuestionAES 128 block cipher problem running Pin
Member 1300542516-Feb-17 19:27
Member 1300542516-Feb-17 19:27 
AnswerRe: AES 128 block cipher problem running Pin
CPallini16-Feb-17 20:55
mveCPallini16-Feb-17 20:55 
GeneralRe: AES 128 block cipher problem running Pin
Razvan Cristian28-Feb-17 7:25
Razvan Cristian28-Feb-17 7:25 
QuestionBooks on learning wxWidgets and understanding terminology? Pin
Member 1297423513-Feb-17 11:34
Member 1297423513-Feb-17 11:34 
AnswerRe: Books on learning wxWidgets and understanding terminology? Pin
VISWESWARAN199813-Feb-17 19:34
professionalVISWESWARAN199813-Feb-17 19:34 
QuestionASSERT(pState->m_hSocketWindow != NULL); When trying to close in the same thread Socket Was Created Pin
ForNow12-Feb-17 16:02
ForNow12-Feb-17 16:02 
AnswerRe: ASSERT(pState->m_hSocketWindow != NULL); When trying to close in the same thread Socket Was Created Pin
Jochen Arndt13-Feb-17 1:19
professionalJochen Arndt13-Feb-17 1:19 
QuestionI don't quite get this thing I've noticed Pin
Member 1297423512-Feb-17 15:56
Member 1297423512-Feb-17 15:56 
QuestionRe: I don't quite get this thing I've noticed Pin
David Crow12-Feb-17 16:31
David Crow12-Feb-17 16:31 
AnswerRe: I don't quite get this thing I've noticed Pin
Richard MacCutchan12-Feb-17 23:20
mveRichard MacCutchan12-Feb-17 23:20 
GeneralRe: I don't quite get this thing I've noticed Pin
Member 1297423513-Feb-17 11:28
Member 1297423513-Feb-17 11:28 
GeneralRe: I don't quite get this thing I've noticed Pin
Richard MacCutchan13-Feb-17 21:49
mveRichard MacCutchan13-Feb-17 21:49 
GeneralRe: I don't quite get this thing I've noticed Pin
leon de boer15-Feb-17 17:31
leon de boer15-Feb-17 17:31 
QuestionUDP Server vs Client Pin
bkelly1311-Feb-17 13:40
bkelly1311-Feb-17 13:40 

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.