What version of VS and SDK you are using?
Is it Win32 app or MFC based? What version of windows you are testing your app?
I wrote sample program with initial number of items set to 20, and after...
In your case, the question to ask is: is this hook dll preventing only one (yours) application from running, or others too?
If yours is the only one, it is most likely your application is a culprit....
First of all: do not subclass your control using CEdit class. Derive your own from CEdit and then subclass the control.
Secondly, CDialogEx does not implement ShowKeyboard function unless you are...
vatralaus
Could you please clarify?
Are you having problem with changing font of the displayed text or you have a problem with font typeface selection?
What is the type (class) of the window you...
It is virtually impossible to resolve your problem without analyzing your code and debugging.
Could you please attach your project in a compressed form? Do not include debug/release folders.
I am somewhat confused here.
A question to OOP:
Are you trying to override MFC MDI application default behavior or you are trying to implement MFC "More Windows…" behavior in Win32 application?
OK, you have created project that does the same.
The thing we are asking for is to compress (zip) entire project (solution, project, source and resource files) and attach it to your post.
Before...
Indeed, OnPreparePrinting() and OnPrepareDC() should initialize device context properly.
If you do not need something fancy to print, OnDraw should handle printing as it were a screen.
It is really...
I am not sure why did you deliver executable. Did misunderstood Igor’s post?
He meant to create project that reproduces a problem, so we will have a chance to see the cause not the effect.
It tells you that your CDC object does not have windows device context attached to it.
I do not know how you instantiate CDC object but both: m_hAttribDC and m_hDC are initiated to the same value...
That depends.
I do not know how received data is delivered.
If delivery contains data that is common for all graphs, I would keep data in the document and each view would ask document for needed...
John,
Is your application using hard coded location of the installed program?
You should use SHGetFolderPath to retrieve program files.
There is more to take under consideration:
32-bit program...
You have two choices: register different templates for each graph and invoke new file for each of them.
The drawback is you will have document object created for each template.
I forgot to add:
I have subclassed rich edit control using standard DDX and CRichEditCtrlEx class. I had to write the code to insert member variable; class wizard is dumb handling CDialogBar derived...