Problem in resolution
-
Hi, I am using this kinds of TextOut in my application to display some text. pDC.TextOut(110,145,"ON "); pDC.TextOut(175,282,(CString)sTime )....... .......... But if i chnaged my system resolution,totally the texts are displayed very closely with out any space and text are goes to top.My resolution is 800/600 pixels,I coded my application with this resolution.When i changed resolution to 1024/786 pixels then it dislays closely that is its get compressed.
-
Hi, I am using this kinds of TextOut in my application to display some text. pDC.TextOut(110,145,"ON "); pDC.TextOut(175,282,(CString)sTime )....... .......... But if i chnaged my system resolution,totally the texts are displayed very closely with out any space and text are goes to top.My resolution is 800/600 pixels,I coded my application with this resolution.When i changed resolution to 1024/786 pixels then it dislays closely that is its get compressed.
your problem is when you change resolution from 800 to 1024,yes or no?_**
**_
whitesky
-
Hi, I am using this kinds of TextOut in my application to display some text. pDC.TextOut(110,145,"ON "); pDC.TextOut(175,282,(CString)sTime )....... .......... But if i chnaged my system resolution,totally the texts are displayed very closely with out any space and text are goes to top.My resolution is 800/600 pixels,I coded my application with this resolution.When i changed resolution to 1024/786 pixels then it dislays closely that is its get compressed.
I feel rather than hardcoding the values make it relative to the value you get from :-
int GetSystemMetrics( int nIndex );
orint GetDeviceCaps( HDC hdc, // handle to DC int nIndex // index of capability );
Regards, FarPointer Blog:FARPOINTER