|
Try adding this line to your stdafx.h file...
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
More info here...[^]
Most, if not all the controls you are using are common controls
provided by the operating system. If you want them to look different,
you need to draw them yourself. Search for "custom draw" and "owner draw"
here and you'll find lots of examples.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
followait wrote: In the IDE, I choose Help/Check for updates, but it doesn't detect vs2008 updates. BTW, I've installed vss2005, there is one update for vs2005.
I can't use bcg now.
You have to purchase an "upgrade" license to upgrade from VS2005 to VS2008. If not, the auto update is just providing you the bug updates for VS2005.
Maxwell Chen
|
|
|
|
|
|
get out of here, immediately !
If you were a serious developer, would you expect people to crack your own work ? damnit !
I've been reporting your post as abusive FYI...
|
|
|
|
|
followait wrote: No other way?
You can always get a free copy of Visual GCC.
Maxwell Chen
|
|
|
|
|
No he wants only a cracked one.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
Well, you can also beat up someone and rob him of his legal copy.
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.
[my articles]
|
|
|
|
|
|
Hamid. wrote: Wheres your message?
It is cracked.
Maxwell Chen
|
|
|
|
|
|
I'm trying to obtain the HWnd for GetClientRect(hWnd,Rect) in MFC. I don't know how. Could someone give me a clue as to how. (This will be the mainwindow rect I'm trying to get.)
A C++ programming language novice, but striving to learn
|
|
|
|
|
|
If you have a CWnd object, you can call its GetSafeHwnd() method. But chances are CWnd has a wrapper for the API that automatically reads the HWND .
|
|
|
|
|
Any guide or documents?
Thanxxxxxxxxxxx
modified on Monday, January 07, 2008 9:44:27 AM
|
|
|
|
|
don't BCG document its own products ?
|
|
|
|
|
|
I define some class that inherit from the class CWnd - and i want to define right mouse click event on the inherit class.
How can i do it ?
Thanks.
|
|
|
|
|
You can handle the right mouse button click event by implementing the
WM_RBUTTONDOWN (or WM_RBUTTONUP ) message handler in the inherited class.
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.
[my articles]
|
|
|
|
|
Thanks,
But i have some problem ...
This inherit class locate in some CView class ( the CView is create the CWnd ) and i can't catch the event because the event catch by the CView.
What to do ?
|
|
|
|
|
Yanshof wrote: This inherit class locate in some CView class ( the CView is create the CWnd ) and i can't catch the event because the event catch by the CView
Can you please explain it better?
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.
[my articles]
|
|
|
|
|
The inherit class is open as child class of some CFormView ( doc/view style).
And when i try to get the event in the chinld class i see that the event is stoped in the CFormView class and not in the child class - this make the right click button to not happand event if i add the WM event.
|
|
|
|
|
How are you adding the message handler (code please)?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: (code please)
Today, posters aren't too much expansive.
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.
[my articles]
|
|
|
|
|
I still haven't received my Code Project Mind Reading Unit (CPMRU)
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|