mfc

How to reduce the size of Windows Mobile Date-Time Picker Control?

Hello, everyone. I ran into another problem a few days ago that I can't figure out. I am working with two mobile devices: TouchPro2, with Windows Mobile 6.1 Professional, and TouchPro2 with Windows Mobile 6.5 Professional. So, the hardware is the same, only the version of Window Mobile is different, and even then it's just a different b...

C# Application loaded without focus still steals it on the first injected mouse event.

The titles says the most of it really. I have two applications, the first is a full directX application written in c++, the second application is written in c# and renders flash videos, avi's, pdf's etc using ActiveX COM objects. The first application then captures the content of this c# app, and renders it into the 3d environment as a ...

Z-Order of PopupWindow

Hi, I Created a LayerdWindow with WS_POPUP prpoerty set.. But I am not able to set it's Z-Order by SetWindowPos..This windows is always coming on the top of other windows. I want it below to a particular window.. ...

Can any body tell me how to detect Ctrl+C in MFC or VC++??

Can any body tell me how to detect Ctrl+C in MFC or VC++?? Is Accelerator Helpful in SDI application to detect Ctrl+C?? How? ...

LVS_EX_GRIDLINES on Windows 7

My MFC application uses CListCtrl. On XP the gridlines display fine. On Windows 7 there are no gridlines. Has anyone else experienced this? Any solution? ...

Is MFC only available with Visual Studio, and not Visual C++ Express?

Is MFC only available with Visual Studio, or is it also possible to use it with Visual C++ Express? ...

Application Type

When developing a stand alone application for windows, what type of application should i use. CLR MFC Win32 The application will be connected to an SQL Database, have multible forms, use a Ribbon Bar. If anyone needs more info to answer this question please let me know. ...

Printing PDF to HDC (MFC device context)

Hi, I'm modifying a C++ application and I'd like to add the ability to print and existing PDF using the MFC printing logic (OnPrint...) Is there any method to print a PDF into the MFC? Now I'm converting the PDF to a BMP but sometimes the quality is not so great. ...

Problem with Drag Drop in VC++

Hi, I am working for the first time on Drag-Drop in MFC and I am stuck very badly.. I see some format being used for intra-list drag-drop and its value is 49391 always. I have no idea where this number is coming from. I have registered only two formats viz CF_HDROP and another private format [ who value does not match with this ].. can ...

C++ Project port from VS2003 to 2008

Hi there, i´ve got a problem porting a C++ MFC Project from Visual Studio 2003 to VS 2008. There is a problem creating Dialogs, that Ressources are in different Projects of the Solution. The Project with the Main Frame starts a thread, that creates a little Splash Window. Another Project contains the code and the ressource to create th...

Wrap ActiveX to Intercept Calls (ActiveX Proxy wrapper)

Hi all, I have a deeply ingrained ActiveX control in our system which I would like to learn about / fix! I am thinking about wrapping this MFC dll with a transparent proxy class that will intercept the member etc. HOW can this be approached in MFC. Thanks! ...

RSS feed and program updates in MFC app

My boss wants me to write a simple RSS feed for an C++ MFC app that will pull and display information from the company's website. It also must be able to grab program updates from the website, tell the user that there are updates and then install the updates. Are there any tutorials that follow these guide lines? How would stackoverflow....

Proper usage of the windows user profile directory

I need to create a directory inside a windows users 'home' directory (c:\Documents and Settings\someusername\ or c:\users\someusername\). This directory will exist permanently but will only contain temporary files. What is is the best location for this directory within the users profile if I want to be a good citizen? I should note t...

List Control Adds a Space for an Image to Column 0 When Subsequent Columns Have Images

Hi, I’ve come across a problem with Windows list controls (I am specifically using MFC, but it looks like it applies to all list controls in the Windows common controls library). In my specific case, I want to create a list control that has two or more columns. The first column (0) is text-only and is used to allow the user to jump to ...

C# code - Using a VC++ executable which refers another VC++ dll.

Hello, Am facing quite a nagging problem from quite sometime. The entire process is described below and please let me know what I am doing wrong: I have a VC++ project, say, "MyVC++Project" which references a third party dll named "thirdparty.dll". I am concerned about calling two methods from the dll, namely a.)::Validate(), which va...

Load Resource from other DLL

Hi there, i had a Projekt that worked with VS 2003. Then i ported it with the help of the Studio to 2008. Now the following class crashes when i start the Application in Debug mode. The crash occurs in the Function calling CDialog::Create(IDD_DIALOG_BANNER, wnd); void CPOLBannerDlg::Show(){ AFX_MANAGE_STATE(AfxGetStaticModuleS...

How to use ODBC to connect to SQL Server 2008 in a program written using MFC in Visual Studio 2008?

I Googled this a bit and found out that ODBC is pretty old, but I was wondering how to do this using just MFC. If I got it correctly, I have to use CDatabase, but I'm not sure how to continue. I've found out how to use a Access database (.mdb), but I have no idea about how to do it when it comes to SQL Server 2008. Thanks for your help! ...

COM marshalling problem with modal dialog

I would like to pass a COM object created in the main thread of my C++/MFC8 program to a different thread, and leave all synchronization to COM. Using CoMarshalInterThreadInterfaceInStream works -- until the user opens a modal dialog. While the dialog is open, apparently all marshalling messages are rejected, which I sort of understand b...

MFC App loading dialog from another DLL

Hi! We have a very big MFC application that have 16 projects in the solution. Each project is a DLL. Four(4) of these projects are what we call "Network". In each network, there is a dialog that we will call X. This dialog is VERY different in each of the network but the name of the dialog itself is the same in each of the resource.h. I...

CMFCPropertyGridCtrl option drop down problem.

I have a CMFCPropertyGridCtrl some of the CMFCPropertyGridProperty items have options. This allows the user to select a value from a drop down list. The problem is when the user click to select a value the wait cursor show up. I have not found a way to fix this. Does anyone have some insight for this problem? ...