|
|
Thanks Hamid,
But I do not think it relates to my question.
have a nice weekend,
George
|
|
|
|
|
It was more info about void*.
|
|
|
|
|
What do you mean Hamid? I do not quite catch your points.
have a good weekend,
George
|
|
|
|
|
I said it was for more info about void pointers.
Thanks but I think I must tell you have a good weekend because my holiday is Fridays not Sat and sundays
|
|
|
|
|
Thanks Hamid!
regards,
George
|
|
|
|
|
You're welcome.
May I ask a question?
|
|
|
|
|
Sure, Hamid.
regards,
George
|
|
|
|
|
I asked a question of you before but I dont know why you didnt answer to me anyway I saw your profile that you live in china,so I have some questions of you:
I like to see China because I like China and China people (of course I dont know I shall be successed or no),so I want to learn China language, I seached on the internet but I couldnt find good site for learn it because I must know pronunciation of alphabet and how can I write China's character (do you know a good site for it) I think its difficult for me and other question where's nice places on China.
|
|
|
|
|
Hi Hamid,
I have answered you before. Please check your private message box.
regards,
George
|
|
|
|
|
I didnt get any thing.
|
|
|
|
|
I have sent again, still not received?
regards,
George
|
|
|
|
|
|
Could you check with your email please? I always reply with Email option.
regard,
George
|
|
|
|
|
No I didnt get any mail! except your reply!
|
|
|
|
|
Hi Hamid,
What is your email address? For off topic questions, I would like to discuss you using personal email other than using this forum resource.
regards,
George
|
|
|
|
|
My mail is help_clock@yahoo.com but I suggest if you have any question is better you ask here because you will be get more answer to your question.
|
|
|
|
|
No problem, Hamid!
I have replied your email.
regards,
George
|
|
|
|
|
Yeah I got it.
|
|
|
|
|
Found GetVisibleClipBounds works, testing...
<br />
m_pMemImage=::new Bitmap(cx,cy,PixelFormat32bppARGB);<br />
m_pMemGraphics=::new Graphics(m_pMemImage);<br />
<br />
CMyImage::Draw(Graphics *pG)<br />
coordinates in CMyImage are in percentage, so when I draw it, the total size should be known. It'll be fine to get the size of a Graphics object here, any way?
modified on Thursday, January 17, 2008 3:26:35 AM
|
|
|
|
|
followait wrote: the total size should be known
You need to know the drawing area right?
|
|
|
|
|
|
Normally GetClientRect API will give the window's client area for normal painting. Isn't it enough?
|
|
|
|
|
followait wrote: m_pMemImage=::new Bitmap(cx,cy,PixelFormat32bppARGB);
m_pMemGraphics=::new Graphics(m_pMemImage);
It's the size of the Bitmap...
UINT graphicswidth = m_pMemImage->GetWidth();
UINT graphicsheight = m_pMemImage->GetHeight();
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes, it's my last choice.
Because I change the size of the image when the client's size chnages,
I'l like to have less coupling.
|
|
|
|