|
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++
|
|
|
|
|
Mark Salsbery wrote: I still haven't received my Code Project Mind Reading Unit (CPMRU)
I know, because I've.
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]
|
|
|
|
|
!!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello,
Is there an easy way to get the name of currently logged windows user??
Thank you
|
|
|
|
|
You mean something like GetUserName() ?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
<br />
char c = 0xA0;<br />
<br />
if(c == -96)<br />
{<br />
cout << "why does c==-96 but not equals 160?" << endl;<br />
}<br />
|
|
|
|
|
A char is a signed byte. Which means it goes from -127 to +127, with the first bit being the sign bit.
|
|
|
|
|
When a char is a signed 8 bit integer then (char)160 (10100000) is equal to (char)-96 (10100000)
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|