mfc

How does MFC's wWinMain end up in the executable?

怎甘沉沦 提交于 2020-08-24 06:54:10
问题 In MFC, wWinMain is defined in appmodul.cpp . This file is built into mfc90ud.dll from what I can see. However, when I run my application, the call stack shows MyApplication.exe!wWinMain . How has it taken the wWinMain function that was exported in appmodul.obj and placed it in my application? 回答1: Right-click your project in the Solution Explorer window, Properties, Linker, Command Line. Type /verbose in the "Additional Options" box. Rebuild your project. The Output window now shows a trace

CComboBox not selecting CurSel when dropped down

て烟熏妆下的殇ゞ 提交于 2020-07-20 17:26:21
问题 I have an alphabetically sorted combobox in a dialog. This combo contains multiple strings, but some are duplicated with different cases. i.e. we have an 'On' and an 'ON', an 'Off' and an 'OFF'. This may seem redundant but there is a reason, although this is not important right now. The duplicates obviously appear one after the other in the list, with the capitalized strings first. i.e.: OFF Off ON On When the user selects the 'On' (lower case), the correct index is set as CurSel and the

CComboBox not selecting CurSel when dropped down

空扰寡人 提交于 2020-07-20 17:26:19
问题 I have an alphabetically sorted combobox in a dialog. This combo contains multiple strings, but some are duplicated with different cases. i.e. we have an 'On' and an 'ON', an 'Off' and an 'OFF'. This may seem redundant but there is a reason, although this is not important right now. The duplicates obviously appear one after the other in the list, with the capitalized strings first. i.e.: OFF Off ON On When the user selects the 'On' (lower case), the correct index is set as CurSel and the

error LNK2001: unresolved external symbol “class ATL::CTraceCategory ATL::atlTraceException” (?atlTraceException@ATL@@3VCTraceCategory@1@A)

一个人想着一个人 提交于 2020-06-28 05:27:46
问题 I am trying to run this program on Visual Studio 2013, but when I include an object - myparser.obj I am getting the following error: 1>MyParser.obj : error LNK2001: unresolved external symbol "class ATL::CTraceCategory ATL::atlTraceException" (?atlTraceException@ATL@@3VCTraceCategory@1@A) 1>MyParser.obj : error LNK2001: unresolved external symbol "public: static class ATL::CTrace ATL::CTrace::s_trace" (?s_trace@CTrace@ATL@@2V12@A) 1>MyParser.obj : error LNK2019: unresolved external symbol

Setting the folder view in a CFileDialog (MFC)

蓝咒 提交于 2020-06-27 17:57:07
问题 Is there a standard way to set the folder view in a CFileDialog (Vista-style enabled)? I'm trying to get it to show Details view and some custom columns. I've implemented a Windows 7 column handler that displays app-specific info for files created by my app. However, in order to view these custom columns in an Explorer window or a common file dialog, I have to manually set the folder view to Details then select the specific columns I want. This works fine, but the goal is for the file

CHtmlView that is compatible with UltraHD

我的未来我决定 提交于 2020-06-25 05:39:46
问题 CHtmlView is not compatible with UltraHD resolutions. It is not simply down to using the correct HTML/CSS to be UltraHD aware. The print preview mechanism fails and crops the page. Many months ago Microsoft acknowledged this as an issue and has not addressed it. My application heavily uses a CHtmlView element for displaying schedules and printing. Whilst my application is Windows based (Win32/x64) I am getting more and more users on Mac computers running Windows inside it and they all are

MFC: How do you get CMFCToolBarComboBoxButton to show on a CMFCToolBar?

一笑奈何 提交于 2020-06-17 09:33:12
问题 Something I thought would be easy I can't get to work. How do I get a ComboBox to show on the CMFCToolBar ? Here's what I have done that doesn't work (meaning it just shows the original placeholder button with the circle (grayed out)). 1 - I added a button to the toolbar in resource editor giving it the id ID_EDIT_FIND_COMBO (I also put a circle in it just to know it's in use). 2- in CMainFrame I added ON_REGISTERED_MESSAGE(AFX_WM_RESETTOOLBAR, OnToolbarReset) to message map and the

Default filename appears truncated in Windows IFileDialog

点点圈 提交于 2020-06-17 09:11:50
问题 When using the Windows IFileDialog interface to launch File browser dialog, I face an issue if the default filename provided exceeds certain number of characters. The filename appears truncated, although it is simply wrapped around so that we can only see last few characters. It seems the issue lies with the Windows file browser dialog. Whenever the default filename provided exceeds 12-13 characters, it gets wrapped around. Has anyone encountered such an issue? Is there any workaround? OS

Default filename appears truncated in Windows IFileDialog

[亡魂溺海] 提交于 2020-06-17 09:11:43
问题 When using the Windows IFileDialog interface to launch File browser dialog, I face an issue if the default filename provided exceeds certain number of characters. The filename appears truncated, although it is simply wrapped around so that we can only see last few characters. It seems the issue lies with the Windows file browser dialog. Whenever the default filename provided exceeds 12-13 characters, it gets wrapped around. Has anyone encountered such an issue? Is there any workaround? OS

Default filename appears truncated in Windows IFileDialog

烈酒焚心 提交于 2020-06-17 09:11:40
问题 When using the Windows IFileDialog interface to launch File browser dialog, I face an issue if the default filename provided exceeds certain number of characters. The filename appears truncated, although it is simply wrapped around so that we can only see last few characters. It seems the issue lies with the Windows file browser dialog. Whenever the default filename provided exceeds 12-13 characters, it gets wrapped around. Has anyone encountered such an issue? Is there any workaround? OS