You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Inside WM_PAINT I try to execute two covering each other TextOut
(big font).
I use different colors and it's visible blinking during a short time.
Is it possible to "freeze" hDC from GetDC up to ReleaseDC ?
This way I know and it's works.
I am surprised that it's necessary to create dummy bitmap, because in my code I execute BitBlt hdc -> hdcMem in any case.
Unless you create a bitmap and select it into the DC, the DC has no size... the bitmap specifies the 'boundary' (for lack of a better word) of the DC.
From WIN32.HLP:
CreateCompatibleDC:
Before an application can use a memory device context for drawing operations, it must select a bitmap of the correct width and height into the device context. Once a bitmap has been selected, the device context can be used to prepare images that will be copied to the screen or printed.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment