How do you use resource DLL's in an MFC MDI Framework Application??? I would like to export all menus, dialogs, and string resources to a DLL to facilitate localization for an application - i....
Dear All,
I have used the AfxDaoInit() and AfxDaoTerm() in my worker thread to initialize the DAO Jet 3.5 engine.....
But I found if I perfrom some DAO operations in the main thread, a...
Why doesn't PostMessage() work with
SB_THUMBPOSITION? Example:
mylistctrl.PostMessage(WM_VSCROLL,\
MAKEWPARAM(SB_THUMBPOSITION,mylistctrl.GetTopIndex() +1, NULL); // fails
I can do p...
i've frequently asked to myself why Visual C++ 6.0 Wizard for console applications includes always the statement:
//------------------------------------
// The one and only application objec...
How do i restrict the rectangle of a CRectTrack to move in horizontal direction only when the user LButtonDown on the rectangle and drags it around?
I have managed to set the rectangle to ...
i want to display a graph regarding
the data in my document
where can i find a GraphView class
or a GraphControl to install in my app?
I like to use enum in interface method. What I must do?
I have an MFC application (non Doc-View) and want to print the contents of a CRichEditCtrl in a dialog.
Can I dynamically create a CRichEditView and set the contents to be the same as the C...
Question: Is there example code available or a description of how to display data the way 95's Find Files utility does?
Background: I need to write a DDE driver to interface a QNX system to...
I'm trying to user DYNCREATE in my MFC Application, unfortunatly I get the following errors:
Error C2509: 'CreateObject': member function not declared in MainWnd
Error C2509: '_GetBaseClass': ...
HI
I need to access functions in my View class from a user dialog class, how (if this is the correct thing to do) do I get a pointer to the current View so that I can call say, MyView->Monito...
I am programming an ActiveX control in which I call the WinInet class CInternetFile - see code below :
BOOL CWebctlCtrl::GetConfigData(LPCTSTR szURL)
{
// TODO: Add your dispatch handler cod...
Hi.
I need to format CStrings by Format() method so that they looked in CListBox in this manner (every line is one string):
aaa 1111
bbbbb 222
cc 3333
In o...
Hi all,
Where can I learn to build a simple interpreter ?
I want to add scripting option to my application. I found various sources, but non of them was sufficient. I don't want to build...
Hi there!
i am writing a program using CInternetSession inherited class. i used callback feature of openurl(), to update status bar in blocked mechanism. i overwrite StatusCallback()
but i...
Hello,
I have a dialog based application. One of the dialogs has a web browser control.
The dialog has a member variable of type CString. I have a method which sets this variable equal ...
Hi, Expert,
Now I'm implementing a encrypt software, all file is encrypted in a folder,
But when user wanna excute the file, I need decrypt the file and use CreateFile and WriteFile funct...
I would like to derive a simple bar from CControlbar
that will be abale to dock and float and will recieve WM_PAINT but all i want it to be is grayh with out any buttons cause i want to create...
I have wrote an an application using MFC under VC1.52
Now I need it to support long filenames under Win95,
I can force the file open/save dialog boxes to display
long filenames, but I need rep...
I have an application that requires a single document interface but I desire that the main frame window have multiple child windows. Is it possible to use an single document template with a M...
I have two splitter panes each containing a tree control. The problem is that when I select an item in the first tree then go and select an item in the second tree, then go back to the same it...
Hello,
I tried to load and to save CDialogBar based on the Knowledge Base's article "How To Save and Restore State of Dockable Toolbars." However, I can't seem to get this to work. I embedde...
Hi:
I have an object of a class derived from CWnd and use this window to play video. (Under VC++4.2 and Win95). What I want to do is that the video image can cover entire client area while t...
I'm developing a program which support to view DIBs, JPEG, PNG, and GIF, and also has an ability to draw rectangles, lines.. etc. I want to add text object in its capability list.
All objects...
I have created a regular DLL that uses MFC as a shared
library. The DLL contains some dialogs, and is called
through an exported (non-MFC) class.
This works fine.
After exiting from MSDev and ...