Could you clairify this a little? ie: Is this a programming question? Any particular version of driver? Any particular method of accessing these drivers that you are have problems with. Etc..... <p> <br><a href=mailto:Kim_Christensen@telus.net>Kim_Christensen@telus.net</a><br><a href=
If you are thinking of Windows GDI function calls, ie API calls, then all you have to do is get the device context of the client area. Select a pen into the device context while preserving the handle of the original pen. Use one of the GDI drawing functions like Ellipse(). Then select the pen out of the device context and delete it. Something like below:<br><br> zhdc = GetDC(hwnd); // Get device context of our Window<br><br> NewPen = CreatePen(PS_SOLID, 6, RGB(255, 0, 0)); // Create a Red pen<br> OldPen = SelectObject(zhdc, NewPen); // Get handle of original pen & set New pen<br> Ellipse(zhdc, 20, 40, 40, 60);<br> SelectObject(zhdc, OldPen); // Put the old pen back so we can<br> DeleteObject(NewPen); // safely delete the Red one<br><br> ReleaseDC(hwnd, zhdc);<br> <p> <br><a href=mailto:Kim_Christensen@telus.net>Kim_Christensen@telus.net</a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.