I add tab control on the window area(Not on DialogBox). Which function of CFrameWnd class needs to be override to get the which tab is clicked by user. I want to do all this code in CMainFrame class which is derived from CFrameWnd class. If anybody any solution then please forward it to me.
In my application im displaying bitmap in my view. But now i want animated giff file to display.I searched in net but i get solution to display only in dialog. i want to display in view.Pls help me out.
Take thsame steps you used to display the bitmap, but for a GIF you will need to include extra code to load the .gif file and render each frame to a DC. In the case of animated GIF's you may also want to use a timer.
Search on CP, there are numerous articles concerning loading and displaying GIF files.
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.