|
Hi to All,
I have a MFC Dialog based application. I just created the application, and did some modification. But I am not able to view the dialog properly, means the dialog appears partially....some parts are visible and others are not...But If i move my mouse cursor to say on a button it appears fine, Also if i click it works fine....just that some display problem...I redo the modification back to original, still the same....
Could anyone p[lease tell me what could be the problem..
Thanks in advance
I am a beginner
|
|
|
|
|
Are you handling WM_ERASEBKGND message in your dialog? If yes, check the implementation. Improper implementation could cause the symptoms that you said.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
no I didn't do anything like that
I am a beginner
|
|
|
|
|
Hi
I got the error fixed. Its nothing but the transparent property of the dialog....I had made it true...its working fine now...
I am a beginner
|
|
|
|
|
himangshuS wrote: and did some modification
What changes? Or your OS is low on resource? lol ^^
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Hi All,
I'm savitri here. I'm doing FingerPrint project. In this project i want to store fingerprint in database and retrieve that fingerprint for comparision.I created one table called "Images" with 2 fields called ID(AutoNumber)and Image(OLE Object). While inserting fingerprint i'm writing SQL statement like this.
BYTE* buffer=new BYTE[1632];
buffer=m_RegTemplate.pbData;//m_RegTemplate is DATA_BLOB Type.
"INSERT INTO Images(Image) VALUES('"+buffer+"')";
I'm not getting how to retrieve the fingerprint from the database table. i want to save that retrieved fingerprint into m_RegTemplate.pbData for comparision.
Please tell me how to solve this problem and Give me some hints.
Thanks in Advance
Regards,
Savitri P
|
|
|
|
|
I don't have any idea in depth, but I've seem my mates working on similar assignments. People actually use "Hashing" on image files. They create hash values for images and store it along with the image files in DB. When you want to compare a new file, they don't read the images from DB and compare with the new file, the create create a hash value for the new file and compare against the hash values in the database..
Check here[^]
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
How do I detect any mouse/key input at application level. I have an MDI application where processing of mouse/key events are handled in view/doc class of the child window.
I need to check if any mouse/key input didn't occured for a specific time period. I want to handle them in application or MDI so that I can only in one place. But I am getting only WM_MOUSEACTIVATE, WM_SETCURSOR messages in MDI level.
Please help with any suggestion/idea.
Thanks in advance
Sandip
|
|
|
|
|
Install a mouse hook locally in your application using SetWindowsHookEx .
Start a timer that increments a variable.
Whenever a mouse message occurs the hook procedure will be called.
In the hook procedure reset the variable to 0.
Do the same for keyboard with a keyboard hook.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks for the advice...
Sandip
|
|
|
|
|
g_sandipan wrote: I need to check if any mouse/key input didn't occured for a specific time period.
GetLastInputInfo[^] is useful to detect input idle time.
|
|
|
|
|
For that u need to user TIMER, on Application startup u need to start it, and if any MOUSE/key input occurred, then u need to again restart the timer.
Regards,
Sunil
|
|
|
|
|
Hi i have added a new XML file in my project . This xml file is at some other location in my project directory and i want this file to get installed in my C:\<projectname>\XML\Grid_AdditionalInfoFeature.xml. i have done changed in Installer . But while installing new build i am getting the erro specified in subject line . I have checkd the installer changes but could not able to trace. In error message i am not getting .xml extension to my file name .
Please provide comments if any...
|
|
|
|
|
I want to know which message is associted with number 131?
|
|
|
|
|
Hello VCD,
Could you please elaborate your question? which message do you mean?
Error Message or Window Message?
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
I'm talking about the window message, I want a list of all message
with respective numbers that msg Q uses? when I'm debugging I'm getting
only numbers I want the message name too.
|
|
|
|
|
VCD_A wrote: when I'm debugging I'm getting
only numbers I want the message name too.
Typing @eax,wm into debugger watch window helps sometimes!
|
|
|
|
|
The value which you have given 131, if it is in Decimal format, the HEX equivalent of that is 0x0083, and its stands for WM_NCCALCSIZE message.
You can check below link for more details:
http://msdn.microsoft.com/en-us/library/ms632634(VS.85).aspx#[^]
Regards
|
|
|
|
|
would you plz tell me how did you know that this message is associated with 131 number?
|
|
|
|
|
First let me know, the value 131, which u have given in Decimal format or HEX format.
|
|
|
|
|
Linkety[^]
But that's for Winuser.h .. You should know on what context you are searching that number and search in the corresponding .h file.
If it's an error constant, there's one:Check here[^]
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
You can get all Windows message values in WinUser.h file, in your include directory
|
|
|
|
|
VCD_A wrote: I want to know which message is associted with number 131?
"Abort, retry, ignore?"
|
|
|
|
|
HI,
Suppose if i create a Class object dynamically using a stack pointer should i delete the pointer bcos as it is a stack pointer it gets freed at the end of the function...
and what happens to the object created on the heap...(will it be deleted...)?
Please correct me if im wrong...
|
|
|
|
|
p_1960 wrote: Suppose if i create a Class object dynamically using a stack pointer
You cannot do that.
You may allocate dynamically 'objects' (i.e. memory) only using the heap (and yes, you've to perform yourself the cleanup, deleting heap allocated memory).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|