Hello friends,
I am encountering a perplexing problem with drawing a polygon on a form programatically, using the API Polygon call.
Problem: The polygon is drawn nicely when the Form's ShowWindow is set to Default or In-Top-Level-Screen (0 or 1). But when I try to set the Form to As-Top-Level-Form (ShowWindow = 2), the polygon will not draw. And I need the Form to be a top-level form, so this is an impeding glitch.
The form is modeless and maximized. I have tried altering the size, and making the form modal. Also tried Themes both .T. and .F. Still nada.
I suspect this may have something to do with the fact that the Polygon call requires a Device Context (another API call) to be passed, which maybe works differently for the Top-Level Window???
Any ideas?
TIA
wilfranz
I am encountering a perplexing problem with drawing a polygon on a form programatically, using the API Polygon call.
Problem: The polygon is drawn nicely when the Form's ShowWindow is set to Default or In-Top-Level-Screen (0 or 1). But when I try to set the Form to As-Top-Level-Form (ShowWindow = 2), the polygon will not draw. And I need the Form to be a top-level form, so this is an impeding glitch.
The form is modeless and maximized. I have tried altering the size, and making the form modal. Also tried Themes both .T. and .F. Still nada.
I suspect this may have something to do with the fact that the Polygon call requires a Device Context (another API call) to be passed, which maybe works differently for the Top-Level Window???
Any ideas?
TIA
wilfranz