I highly doubt the code you posted is the cause of your problem. Your code is trying to read a variable that has not been initialized 0xCCCCCCCC and because there is a 0xDC at the end of that hex, I am guessing that the instance of your class has not been initialized.
You can verify this by placing a breakpoint on the code and checking the value of the this pointer.
when i use this link to customize the title bar..........<b>http://www.codeproject.com/gdi/customcaption.asp</b>.Its demo was working fine but there is a bug,when first time click the minimize button it works fine but after that its not working and what we saw when i click the half left part of the maximize button,the window will minimize and when i click the right half part of the maximize button then the window will maximize.how to fix that bug.plz anybody fix the bug. i am a novice programmer.
Without looking at any code it's kinda hard to say. But to hazard a guess, I would say the NCHITTEST message is being handled incorrectly and that the rectangles of the buttons are improperly positioned.
what do you exactly want us to do here?
you have pasted your whole code here
no comments of the code?
no proper indentation?
and that too incomplete code.
where exactly your problem is?
please put some write up before your code
and keep the code as simple as possible.
and before posting, read the post "How to get an answer to your question" by chris maunder above your post.
this guy is acting like a troll... but strangely, he is not, because it happened to him to answer to some questions we've been asking to him.
but anyway, this guy deserves once again to be flammed for this post
after Waleed has asked his question, related to intellisense, i have got one more question on that topic.
iam using vc++ 6.0.
in my code editor,
say if i use a variable for example,
and if i type "str" and then ".", the functions/members of the CString class are supposed to pop up.
but sometimes, this is working and sometimes not.
any ideas like, how and where to enable it if possible.
gud luck to Waleed for his post and hope for the solution.
I'm using __declspec(property) to access get/set methods as properties (like in C# and VB.NET). Now, the problem is that both the property name and the get/set methods show in the intellisense list. Is there anyway to remove the names of the get/set methods from the intellisense list?
Here's an example, I have two methods, one is a get method with the name getText and another set method with the name setText, the name of the property is Text. I only want Text to show in the intellisense list, I don't want either getText or setText to show up in the list.
In a project I am currently working on, I would like to have some functions (like for example the logging) running as a server that can be addressed by all modules that may simultaneously be running. Does anyone have a link to articles or examples of how to build such server software and how to interact with it from the other modules?
I have a problem dealing with this bitmap. using MFC, i must create a function that return the values of bitmap frequency vs. its pixel value when I load it in the window. This is somewhat like a histogram.
Can somebody share me some hints or ideas about this?
Last Visit: 31-Dec-99 18:00 Last Update: 21-Apr-21 5:00