News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Spinning cube flickering problem

Started by r0ger, August 27, 2022, 06:22:56 AM

Previous topic - Next topic

hutch--

Roger,

I suggested that you don't use a dialog but use a CreateWindowEx() as you have more adjustments with a proper window. A dialog is a limited class window for basically simple tasks. Anything serious is best done in a window.

r0ger



day 9000 of the cube effect - finally got the cube right and without flickering (not rly, but very very less now but it's acceptable) !

the solution was to create a device context for the static control i've inserted (GetDlgItem,xWnd,10), then create the bitmap for the cube, and then apply it with SelectObject.

what i forgot was that the ebp was saved to the rect variable so for that I have applied it with GetClientRect for the window handle to make the cube working without overdrawing.

at the moment i made the cube only if i want to insert it on the main form. i will see what i can do with the vertical scroller one as well.
r0ger // PRF