|
Maybe try overriding OnChildNotify()
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
thanks, it may work even I haven't test in detail.
|
|
|
|
|
Try with ON_NOTIFY_REFLECT/ON_CONTROL_REFLECT, see here[^] for details.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<
|
|
|
|
|
OnChildNotify() works perfectly in my case - I guess it also works fine for other controls.
|
|
|
|
|
what is good init point (message) for subclasses of controls (such as CEdit, CStatic) of a CDialog?
the init point is not on OnInitDialog(...) of the dialog, but inside subclass of controls.
OnCreate(...) of the control is not working.
what point (message) do you use when you initialize a control inside its subclass?
|
|
|
|
|
includeh10 wrote: OnCreate(...) of the control is not working.
Do you have ON_WM_CREATE() in your message map?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I use the boost regex library to parse the CString
#include "boost/regex/mfc.hpp"
But when build, the vs2008 writes "LINK : warning LNK4098: default library“MSVCRT”conflict with other library please use /NODEFAULTLIB:library"
but when I use the "/NODEFAULTLIB:library", then some obj of MFC control cannot find.
How to resovled it ?
modified on Monday, May 30, 2011 7:37 PM
|
|
|
|
|
This is just a warning, you don't have to resolve it, as a matter of fact you can disable it if you know you're overriding some of the MFC framework (which I believe the boost library does).
|
|
|
|
|
Thanks for your reply.
It's error.
When IDE cannot create "exe" file, the dialog shows "lost boost_regex-vc90-mt-gd-1_46_1.dll" if debug.
|
|
|
|
|
if it would be an error, it would say "error", not "warning"... maybe you have another error
|
|
|
|
|
My MSAA Hook dll is expected to be loaded into all process's memory. in 32 bits Win7 it works.
But in win7 64 bits some process can load MSAAHook.dll 64 bits cannot be loaded into some 64 bits process. Why does this happens?
= ::SetWinEventHook(EVENT_MIN,
EVENT_MAX,
m_hModule,
MSAAHook::WinEventProc,
0,
0,
WINEVENT_INCONTEXT | WINEVENT_SKIPOWNTHREAD);
|
|
|
|
|
A Windows process has to be homogeneous; you can't mix 32-bit and 64-bit code in a single process, Windows can't handle that. If your DLL works fine in a 32-bit environment, you'll need another one to get it working in a 64-bit world.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
actually, I have 64 bits hook dll for 64 OS. but this 64 bits hook dll cannot be hooked into all 64 bits process. I changed to source code, and give the SetWinEventHook function the process ID, but it still cannot set hook into the process. So I am very confused about this.
|
|
|
|
|
Hi,
I am able to write & read the data from serial port using buffer length pre specified. Is there any way by which I can read continous stream of data from serial port. I have tried to read the data from serial port using "ReadFile ()" in a while (1) {} loop. But my ReadFile () get blocking and I am not getting data after first read of buffer lenght is done.
|
|
|
|
|
Read here for serial port pointers.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
Thanks a lot . Its really a nice article
|
|
|
|
|
It is, except for the horrible background color.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
|
hi all,
please help me to create update and delete registry in mac os if its possible please help me for this.
thanks in advance.
|
|
|
|
|
Is it a C++ question ??
Please post your question Here[^].
"Every Little Smile can touch Somebody's Heart...
May we find Hundreds of Reasons to Smile Everyday... and
May WE be the Reason for someone else to smile always!" (ICAN)
|
|
|
|
|
You should start by finding out what sort of registry MAC OS uses; Google seems to believe that it does not have one - see here[^].
The best things in life are not things.
|
|
|
|
|
i want to use a days trial version option for my application.
please help me what can i implement it in MAC.
in windows i easily place the date value in registry and calculate the valid trial days.
so its working fine in windows.
please tell me some thing similar about this in mac.
|
|
|
|
|
|
Er, did you read the other answers?
The best things in life are not things.
|
|
|
|
|
There is no registry on Mac OS.
The equivalent to the registry is the "plist" (http://en.wikipedia.org/wiki/Property_list[^]).
You could use a "dot file" file to store data; those files are usually text files, but this is not standard Mac OS behaviour.
Watched code never compiles.
|
|
|
|