Questions tagged [mfc-feature-pack]

1

votes
3

answer
4k

Views

How do I dynamically change the text of a CMFCRibbonLabel

My CMDIFrameWndEx derived main frame window uses a CMFCRibbonStatusBar to which I add a CMFCRibbonLabel. I'd like to change the text of this label at runtime: m_pLabel->SetText(description); m_pLabel->Redraw(); It only updates the text but not the rectangle in which to draw it. So if the original te...
foraidt
1

votes
2

answer
69

Views

How to put checkbox in each CMFCTabCtrl's tab header

I have a MFC application. I am using CMFCTabCtrl in a dialog. My requirement is I have to add a checkbox in each tab page of CMFCTabCtrl as below. Is it possible to add checkbox in each tab page of CMFCTabCtrl ?
User890
1

votes
1

answer
43

Views

CMFCTabCtrl's Active tab close button

In CMFCTabCtrl there is a function EnableActiveTabCloseButton() to have or not close button on any active tab. I don't want to have close button only in my first tab. Th e other tab will have close button. How to achieve it? Thanks.
User890
1

votes
1

answer
106

Views

SetFocus and KillFocus

I have a CMFCTabCtrl in my dialog and my CMFCTabCTrl has two tabs. The first tab has a CComboBox and the second tab also has a CComboBox. Whatever item newly added in ComboBox in first tab will reflect in ComboBox in second tab. Similarly, whatever item newly added in ComboBox in second tab will ref...
User890
1

votes
1

answer
4.3k

Views

Creating Docking Panes in CView instead of CMainFrame

When creating an MDI Application with 'Visual Studio' style using the AppWizard of VS2008 (plus Feature Pack), the CMainFrame class gets a method CreateDockingWindows(). Since I don't want all panes to be always visible but display them depending on the type of the active document, I made those wind...
foraidt
1

votes
1

answer
591

Views

Help finding issue with tooltip on CMFCMenuBar

I have an MFC app using the new UI features released in the Feature Pack and I'm having trouble with tooltips on the menubar. By default, I beleive tooltips are not enabled on menu items. Yet whenever I hover over the 2nd item in any of the menu lists I get a tooltip with 'Untitled' in the popup. Th...
user133180
1

votes
2

answer
1.1k

Views

VS2010, MFCEditBrowseControl heap crash

I have a simple dialog that contains the new MFC browse edit control. The control was linked to 'CMFCEditBrowseCtrl m_edit' using the member variable wizard. The wizard generated mappings seem fine. On first run, the edit control is populated with chinese type characters or sometimes question marks...
nspire
1

votes
1

answer
1.4k

Views

Changing the Background color of a MFC application

I am working on a very large MFC application. There are hundreds of dialogues in this application. Now, I want to change the Background color and Font size of all dialogues in MFC application. How can I do this? Whether I have to handle WM_CTLCOLOR massage for each and every dialogue or any other wo...
user1234085
1

votes
1

answer
337

Views

DockPaneLeftOf in CMDIChildWndEx Frame

I have the following code and I want to dock the CMFCToolBars in one row, but using DockPaneLeftOf does not result in any toolbars, except MainTools, displaying. Using only DockPane results in the toolbars displaying below each other. Any ideas? BOOL CFloorFrame::OnCreateClient(LPCREATESTRUCT lpcs,...
Jak
1

votes
1

answer
582

Views

Buttons not getting replaced in CMFCToolbar at runtime

I am using CMFCToolbar in a CMFCDesktopAlertDialog which is contained inside a CMFCDesktopAlertWnd. Initially I create the window and insert 3 buttons. Then on some action, I want to change those buttons to 2 or 3 different buttons. I tried using CMFCToolbar::RemoveAllButtons() & then InsertButton()...
Ashish
1

votes
1

answer
170

Views

CMFCColorDialog not working in MFC Property Page as Release, OK as Debug

The title pretty much explains it. Here's the function to display the ColorDialog when a button is clicked: void CMyPP::OnBnClickedButtonCol() { CMFCColorDialog dlg(m_text_colour); if (dlg.DoModal() == IDOK) { m_text_colour = dlg.GetColor(); } } In the release build nothing happens when the bu...
gregston
1

votes
1

answer
409

Views

BUG in CPaneFrameWnd (MFC Feature Pack VS 2015)

The miniframe class CPaneFrameWnd contains bug in smart docking algorithm! This class used in MFC as miniframe for floating panes and can dock its to parent frame dock sites or to tabbed panes. It works fine when all panes can be docked to main frame only, but when panes docked to the child frame in...
23W
1

votes
2

answer
284

Views

Strange (?) behaviour while sorting CMFCListCtrl

I have a subclass of CMFCListCtrl that supports sorting, reading the documentation I have to implement the virtual method: virtual int OnCompareItems(LPARAM lParam1, LPARAM lParam2, int nColumn); where lParam1 and lParam2 are params of some sort, specified when the list control is created. Since I n...
IssamTP
1

votes
2

answer
0

Views

How do I display a tooltip for a CMFCRibbonButton in the status bar?

I have a CMFCRibbonStatusBar in my mainframe to which I add a CMFCRibbonButtonsGroup which again has a CMFCRibbonButton. This button has the same ID as a menu entry. Creating the button is done as follows: CMFCRibbonButtonsGroup* pBGroup = new CMFCRibbonButtonsGroup(); CMFCToolBarImages images; imag...
foraidt
1

votes
1

answer
0

Views

Will the Scenic Ribbon ever be supported by the MFC Feature Pack?

My team has spent a long time developing a nice UI using the ribbon included in the VS2008 MFC Feature Pack. Now that Windows 7 is out and the look and feel of the ribbon has changed, my application looks out of date already, and it hasn't even been released yet :/ I want the look and feel of the Wi...
demoncodemonkey
1

votes
2

answer
0

Views

How to dock CPaneDialog to MainFrm and..?

I have problem with CPaneDialog. I tested with SetPaneSize MFC feature pack sample projects. What is weird is that CPaneDialog can't be docked to MainFrm while CDockablePane can be. The CPaneDialog is also a child class of the CDockablePane, but it can't be. Only DockToWindow( &other_CPaneDialog_in...
JongAm Park
1

votes
3

answer
0

Views

Dockable panes created in CChildFrame not visible the second time the app. starts

I have created some dockable panes in CChildFrame::OnCreate() The first time i start the application they are shown. The second time i start the application they are created but the splitterwindows are completly against the sides of the clients area (bottom and right), so not visible. So i have to u...
Nijenhuis
1

votes
1

answer
1.7k

Views

how can I use “Visual C++ 2008 Feature Pack” on vc 2008?

I have vc++ 2008 Microsoft Visual Studio 2008 Version 9.0.30729.1 SP on windows7 I downlaod Visual C++ 2008 Feature Pack samples but I can't open the project/solution files. my vc can't open file by extion .vcxproj. what I need to install to fix the problem?
1

votes
3

answer
1.3k

Views

Is it possible to add a custom tooltip on a CMFCToolBarComboBoxButton in a CMFCToolbar?

Is it possible to add a custom tooltip on a CMFCToolBarComboBoxButton in a CMFCToolbar ? I can now use the 'default' tooltip text as defined in the resource file, but I cannot find the way to be able to dynamically change the tooltip text on the combobox in the toolbar. Resources : IDR_TOOLBAR1 TOO...
Max
1

votes
4

answer
3.7k

Views

How to customize CMFCMenuBar in an MFC application

Is there a way to create dynamic menu items in the menu bar of an MFC applications created with visual studio 2008 style with menus not ribbon, I have plugins that add their menus dynamically how can I add them to that menu??? I see //this is the menubar that i want to update CMFCMenuBar m_wn...
ahmedsafan86
1

votes
1

answer
196

Views

MFC “Hidden” or “Default” Function Key Accelerators?

I have a pretty normal MFC SDI application. I recently started using things from the new MFC feature pack (eg CMFCToolbar), and after all these changes, I am seeing some unexplained behavior in keyboard shortcuts. It seems some resource IDs have function key shortcuts (like F6), but I cannot find ou...
sg_man
1

votes
1

answer
33

Views

AFX_WM_ON_MOVE_TAB notification from CMFCTabCtrl

In my application I have 3 tabbed panes, I am tracking/capturing AFX_WM_ON_MOVE_TAB in my mainframe class. The tab control sends current and previous active tab . It doesn't send its window handle. SendMessage(AFX_WM_ON_MOVE_TAB, m_iTabBeforeDrag, m_iActiveTab); how will I know which tab control se...
User890
1

votes
3

answer
2.6k

Views

How do I make a CMFCToolBar recognize image masks?

I have a CMFCToolBar-derived class and an insance thereof is the member of a CDockablePane-derived class. I looked at the VisualStudioDemo sample to see how it's done and have this so far: int CMyPane::OnCreate(LPCREATESTRUCT lpCreateStruct) { // Removed all 'return -1 on error' code for better read...
foraidt
1

votes
2

answer
828

Views

MFC feature pack - Couldn't show the dockable pane once closed

By using the wizard, and selecting Office 2007 style, you can come up with a UI that looks like an IDE - a dockable file explorer pane on the left, and a dockable properties pane on the right. However, when you close these dockable panes, there's no way you can show them again. Even if you recompil...
Owen
1

votes
1

answer
796

Views

how to add an image along with text in a button in MFC?

Am having a hard time in adding image along with a text in a Button..I know that it can be done by enabling the owner draw function with bitmapbutton class..But I dont want to that..so is ther anyother way that i can add an image along with text without drawing the text?
kiddo
1

votes
2

answer
3.3k

Views

Visual Studio 2010 - C++ MFC application with Ribbon UI - Transparency in bitmaps

I am playing around with a small MFC-wizard-generated application, in Visual C++ 2010, and I just decided to put my own bitmap into the resources to replace the three-cubes MFC bitmap that shows up in the ribbon UI Application Button, aka the 'marble'. The original appeared to use black (0,0,0) as a...
Warren P
1

votes
1

answer
917

Views

What does CMFCButton::EnableFullTextTooltip do?

I was trying the CMFCButton tooltips and found that if I call EnableFullText() the tooltips don't show. Here's a little sample: // In OnInitDialog() c_MyBtn.m_nFlatStyle = CMFCButton::BUTTONSTYLE_SEMIFLAT; c_MyBtn.SetMouseCursorHand(); c_MyBtn.EnableFullTextTooltip(); c_MyBtn.SetTooltip(_T('Some str...
MikMik
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.4k

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

View additional questions