Questions tagged [mfc-feature-pack]

0

votes
0

answer
4

Views

What is the names of controls seen in MS-Office Task Pane?

I'm thinking of developing my own Excel addin with VTSO or native COM addin. Does anyone know what is the names of controls seen in task panes in MS-Office, like seen in attachment? I thought it is CMFCTasksPane, but it turns out different.
Pengin
1

votes
1

answer
4.1k

Views

How To make a static text bold and underline in MFC

I am having a message window to display an error message. In that message some text should be bold and underlined. I am using static text. I am using the following code. m_font.CreateFont(10,0,0,0,FW_BOLD,0,0,0,0,0,0,0,0,"Arial"); GetDlgfItem(Id of the lable)->SendMessage(WM_SETFONT,WPARAM(HFONT)),0...
Prabhu Harin
6

votes
7

answer
4.6k

Views

Is the MS Ribbon/Office UI License worth worrying about? [closed]

Imagine I want to create an application which is very similar to MS Word 2007, using C++ in VS2008 and the MFC Feature Pack. For the ribbon, there are 3 options available to me: Use the ribbon from MFC Feature Pack without acquiring a license. Probably dodgy in the long run. You're all right until y...
demoncodemonkey
5

votes
1

answer
4k

Views

Is it possible to create a CImageList with alpha blending transparency?

I would like to knwo if it is possible to create a CImageList with alpha blending transparency. Sample code that creates a CImageList with ugly transparency (no alpha blending) CGdiPlusBitmapResource m_pBitmap; m_pBitmap.Load(IDB_RIBBON_FILESMALL,_T("PNG"),AfxGetResourceHandle()); HBITMAP hBitmap; m...
sorin
4

votes
2

answer
3.2k

Views

CMFCTabCtrl catch tab change event

I want to catch the tab change event of a CMFCTabCtrl. Below is the code I'm trying to do that. But it does not catch the change event. BOOL SurvChatDlg::OnNotify( WPARAM wParam, LPARAM lParam, LRESULT* pResult ) { if(((LPNMHDR)lParam)->code==TCN_SELCHANGE) { int i = m_TabControl.GetActiveTab()...
4

votes
4

answer
5.3k

Views

Can you use CMFCVisualManager with a dialog based application?

Can you use CMFCVisualManager with a dialog based application to change the applications appearance? If so how is it done? The idea is to change the shape, colour etc. of controls such as push buttons using the MFC Feature Pack released with MSVC 2008.
John W
4

votes
2

answer
2.6k

Views

CMFCToolTipCtrl or CTooltipManager examples?

Has anyone tried using these new VS2008 MFC classes yet? I can't seem to find any examples anywhere. Even the VS2008 samples(1) don't mention these classes. (They use CToolTip.) (1) Update: My mistake. I had downloaded the non-SP1 samples. I see that the SP1 samples have samples specifically for the...
skst
3

votes
1

answer
2.5k

Views

How to Remove Visual C++ “Expand Menu” Arrow?

When creating menus with submenus in Visual C++, I find that submenus begin as arrows that I must click to expand to see their contents. Is there a way (programmatically) to have the submenus pop-out already expanded (with no arrow to click)? Here is an image of what I am talking about, before and...
Nathan Fig
3

votes
5

answer
7.4k

Views

How do I display custom tooltips in a CTreeCtrl?

I have a class derived from CTreeCtrl. In OnCreate() I replace the default CToolTipCtrl object with a custom one: int CMyTreeCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CTreeCtrl::OnCreate(lpCreateStruct) == -1) return -1; // Replace tool tip with our own which will // ask us for the text to...
foraidt
2

votes
3

answer
3.8k

Views

Is it possible to add CMFCToolBar to a dialog?

I just tryed the standard way for adding CToolbar to a dialog on the new CMFCToolBar. But it doesn't work. Befor I dip into the new implementation, I want to know if it actually possible?
mem64k
2

votes
1

answer
1.2k

Views

Is there any better MFC 2008 Feature Pack Documentation

I'm trying to figure out how to use the CDockablePane. But the just a few total overloaded demo samples (look like marketing samples not intended for programmers) i can't find any Tutorial kind. And the reference is heavy for a medium skilled MFC hacker like me. EDIT: This is the only documentation...
Lothar
2

votes
2

answer
2.7k

Views

MFC Ribbon - get base element clicked from command

I have a CMFCRibbonUndoButton on the ribbon of an MFC application. I have a handler for when its ID is clicked (ON_COMMAND(ID_EDIT_UNDO, ...)). However, when the button is also in the quick access toolbar (QAT), there are apparently two CMFCRubbonUndoButtons which each keep their own state. In th...
AshleysBrain
2

votes
2

answer
278

Views

How can I validat each character entered by the user in MFC property grid control (CMFCPropertyGridCtrl)

I have been trying to validate and update each character in the properties edit box (CMFCPropertyGridCtrl) which was entered by the user.I searched the MSDN and find function like PushChar() etc. But those methods didn't solve my problem. Basically I need to implement CEdit::OnChar() function for t...
Suman Reddy
12

votes
3

answer
6.1k

Views

Does Microsoft Office 2010 make use of WPF or is it plain old MFC?

I have been using WPF for some time now and I am trying to reproduce some of the nifty UI features of their office suite. Although very easy in WPF, I am wondering how it could be done using MFC feature packs (I might have to use it instead, since my company has not yet approved the use of WPF). Sin...
ak3nat0n
2

votes
1

answer
290

Views

CMFCRibbonBar: GetEditText() doesn't return the actual edit box text of a CMFCRibbonComboBox unless window loses the focus

I have a VS2008 project with a 'Find' panel containing an editable combo box as well as a forward and a backward search button. When I press a search button, GetEditText() returns an outdated value. CMainFrame *pFrame = static_cast(GetTopLevelFrame()); CMFCRibbonBar* pRibbon = pFrame->GetRibbonBar()...
thomiel
2

votes
1

answer
1.4k

Views

CMFCPropertyGridProperty list of values?

Is there a standard way to hold a user editable list of values in a CMFCPropertyGridProperty? I'm thinking a string with semi-colon delimiter (that seems to be the windows standard). If I want an edit interface for this how would I build that?
User
3

votes
3

answer
1.1k

Views

How to use F10 as a shortcut in an MFC application using a Ribbon

I developed an MFC application using VS2008 and the MFC featurepack. This application UI is using a ribbon. I now need to have F10 as a proper shortcut for one of the critical feature of my application but I seem to be unable to set the accelerator correctly as it always use the default ribbon accel...
Fabien Hure
4

votes
2

answer
9.6k

Views

Disable/Enable Ribbon Buttons for MFC Feature Pack

I am using the MFC Feature Pack and I have some buttons on a ribbon bar, instances of CMFCRibbonButton. The problem is that I would like to enable and disable some of them in certain conditions, but at runtime. How can I do this? because there is no specific method for this...I heard that a solution...
melculetz
2

votes
3

answer
6.2k

Views

How to close dynamically created CDockablePane windows?

In my MFC (Feature Pack) application one can dynamically create docking panes to display charts/tables etc. However, I don't want to let the user open the same thing twice. I create a pane like this: // Create CMyDockablePane pPane pPane->Create(...); pPane->EnableDocking(CBRS_ALIGN_ANY); // Create...
foraidt
4

votes
9

answer
3.2k

Views

Find out which colours are in use when using the MFC Feature pack in Office 2007 style

I'm updating some of our legacy C++ code to use the "MFC feature pack" that Microsoft released for Visual Studio 2008. We've used the new classes to derive our application from CFrameWndEx, and are applying the Office 2007 styles to give our application a more modern appearance. This gives us gradie...
John Sibly
4

votes
3

answer
3k

Views

How do I use CMFCRebar to produce an acceptable look and feel?

I am trying to use some classes from the MFC Feature Pack to improve the look & feel of my MFC application. In my application, I use one CReBar object to dock three different toolbars. I have updated the class of this object to use CMFCReBar, but it doesn´t look good when using some visual styles....
Javier De Pedro
1

votes
1

answer
396

Views

Why am I getting a question mark in my menu in place of a unicode character?

I have a MFC application compiled with MBCS. We are also using the CMFCMenuBar from the MFC Feature Pack to display our menu. I am trying to add unicode characters to my menu using the following code (from this question) MENUITEMINFOW mi; mi.cbSize = sizeof(MENUITEMINFOW); mi.fMask = MIIM_ID | MIIM...
JonDrnek
3

votes
2

answer
224

Views

MFC C++ Derive from CEdit and derive GetWindowText

I am deriving from CEdit, to make a custom control. It would be nice, if like the MFC Feature Pack controls (Mask, Browsable) that I could change GetWindowText to actually report back not what is normally displayed on the control (for example, convert the data between hex and decimal, then return b...
Mary Ellen Bench
4

votes
4

answer
4.1k

Views

How to set a CMFCPropertyListCtrl's column width?

I'm adding properties to an object of type CMFCPropertyGridCtrl like this: myPropertyListCtrl.AddProperty( new CMFCPropertyGridProperty( _T("Name"), foo.GetName()) ); The result is that only the second column is visible but not the first that should contain "Name". I found CMFCPropertyGridCtrl::GetP...
foraidt
3

votes
2

answer
1.1k

Views

CVSListBox notification after delete

I've just added one of the new (MFC Feature Pack) CVSListBox controls to a project. The list of items in the control is tracked by some other objects in my application, so I need to take lots of notifications from the list-box when anything changes so that I can update other stuff. For those that...
Will Dean
3

votes
1

answer
2.8k

Views

MFC Tabbed Documents - how to enable middle-mouse button to close document?

If you create a new MFC application (with MFC Feature Pack), and using all the defaults, click Finish. It creates an MDI application with the new "Tabbed Documents" style. alt text http://i25.tinypic.com/s48img.png I think these are great except it really annoys me that I can't close a Tabbed Docume...
demoncodemonkey
3

votes
1

answer
1k

Views

MFC SDI Application without a default “New Document” on Startup

My application is an SDI with multiple views. By default, it creates a new document when the application starts. I want to modify this behavior so that a new document is created only when user explicitly clicks on "New". Or at least mimic this behavior. Any ideas? I am using Visual Studio 2008 with...
Jujjuru
3

votes
1

answer
647

Views

Should the new MFC Feature pack contols appear in VS toolbox

I'm trying to use some of the new MFC feature pack controls on an existing MFC app, with VS2008 SP1. None of the new controls appear in the dialog-editor toolbox. Should I expect them to be there, and if so, do people have any suggestion for how to get them to appear?
Will Dean
3

votes
2

answer
1.9k

Views

How to modify the tool rect of a CToolTipCtrl?

This question is related to this one. In a CDockablePane derived class I have a CTreeCtrl member for which I add a ToolTip in OnCreate(): int CMyPane::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDockablePane::OnCreate(lpCreateStruct) == -1) return -1; const DWORD dwStyle = WS_CHILD | WS_VISIBLE |...
foraidt
3

votes
1

answer
1.6k

Views

CMFCPropertyGridProperty numeric input

I'm using MFC feature pack and I have a dockable properties window. How do I restrict the user from typing any other characters but numbers alone in the values field? Thanks...
Owen
5

votes
3

answer
6k

Views

How can I add a ribbon menu to an existing MFC application?

Microsoft Visual C++ 2008 Feature Pack has ribbon menu support. Is it possible to make use of that in an existing MFC application that was not created with a ribbon menu?
yesraaj
3

votes
2

answer
3k

Views

Why is CMFCMenuBar not utilizing the accelerator table?

In a doc/view project using VS2008, a MFCMenuBar seems to load the correct MENU resource (IDR_MAINFRAME) from the project, since adding and removing menu items is reflected in the menu's UI. It even appends the accelerators to the default menu items (e.g. Ctrl+O to the Open... item). However, the...
bsruth
5

votes
1

answer
4k

Views

CMFCButton with Vista Style

I can't seem to get a CMFCButton to be displayed in Vista style in a dialog box application. I'm using VS2008 with MFC Feature Pack. Here are some steps to reproduce my problem: Create a new MFC Project; Specify a Dialog based project. Add two buttons to the main dialog. Add a variable for each butt...
djeidot
1

votes
1

answer
2.1k

Views

How to refresh the CMFCRibbonBar after adding/updating an item

After adding a ribbon item, or calling a method that updates an item, the ribbon does not refresh correctly. Sometimes it's OK after resizing the window but most of the time the panel is in a collapsed state. I tried all the functions I could think of, ReposPanels, RecalcWidths, RecalcLayout etc etc...
demoncodemonkey
3

votes
0

answer
522

Views

Duplication of menu items in Window Menu of CMFCMenuBar

I ported my MFC application to Feature pack.When i try to insert a new sub menu/popup menu to CMFCMenuBar, the menu items in "Window" menu gets duplicated. Kindly help me. I used the below code to insert submenu. CMenu* pMenu; HMENU hMenu = m_wndMenuBar.GetHMenu(); ASSERT(::IsMenu(hMenu)); pMenu...
Aswathy_Nair
3

votes
1

answer
2.7k

Views

Changing CFrameWnd to CFrameWndEx in MFC causes unhandled exception - any ideas?

Still getting used to this MFC lark and I've hit a brick wall on this particular problem. I'm updating some legacy code to use some of the more refined controls available in the MFC Feature Pack. Following the examples given online for updating an old MFC app, changing the base application class to...
Monobounce
5

votes
0

answer
330

Views

MFC Ribbon - alignment issue(s)

Create a standard App with ribbon, then add this to the CMainFrame::InitializeRibbon() at the appropriate place. // Create panel CMFCRibbonPanel* pMyPanel = pCategory->AddPanel(L"Test", m_PanelImages.ExtractIcon(27)); // Add wide combobox with short label to panel m_pMyCombo = new CMFCRibbonComboBox...
Vishal
2

votes
1

answer
840

Views

MFC Feature Pack 2008 CPaneDialog as CDialogBar

I am writing software with MFC feature pack 2008. My application is based on old version this application. The old version was not written with feature pack. In the old version of this application, there are CToolBar and 3 CDialogBars. It looks as follow: In my application, I changed CToolBar to CM...
Ahemski
2

votes
1

answer
627

Views

MFC Feature Pack Bug? Ribbon Based GUI does not restore after hibernation (sleep mode)

I've forced with a possible bug feature of MFC Feature Pack under Windows Vista. It can be easily recreated: Create a new SDI app using MFC Feature Pack (with Ribbon based interface). You can also add some floating panels if you want; Do not change anything, just build a Release; Close the Visual St...
Mar
2

votes
2

answer
1.2k

Views

CMFCPropertyGridCtrl Multiple Selection

Is there a way to enable multiple selection of properties in a CMFCPropertyGridCtrl? I want to manipulate several CMFCPropertyGridProperty together e.g. for deleting them.
fgrollio

View additional questions