|
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.
|
|
|
|
|
followait wrote: I'l like to have less coupling.
hmm I'm not sure what you mean....if the size changes then
you need a new bitmap as well, right? Your Graphics object, which is essentially
a memory DC, is tightly coupled with its "selected" Bitmap.
Maybe Graphics::GetVisibleClipBounds(...) gives you what you need?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
In my application i have created a new dialog box which has 4 check boxes and 4 static boxes. when the check box is checked the data will be logged into a folder. when its not its says not logged. now i am using GetDlgItem to display whether is logged or not logged using a static control. i m not getting the output properly. what is happening is when i click on the check box the static box displays the correct result and vice versa. but when i click OK button and again open it, if the check box is not checked it would say logged. what can be the reason for that? is the value getting killed once i close the window? if yes then what needs to be done to make it stay on the dialog
|
|
|
|