I'm trying to make a temporary popup window appear in 
the center of the display. I discovered that the 
WinDraw... functions draw relative to the upper left 
corner of the active window (doh.. imagine that!). Then 
I discovered WinWindowToDisplayPt, that converts window-
relative coordinates to display-relative. That works 
great, except that what I draw is clipped by the border 
of the display window (causes problems when the find 
dialog is open, or a category popup list is open). So, I 
tried temporarily changing the clipping window (using 
WinGetClip and WinSetClip) to match the rectangle I'm 
trying to draw, using the display relative coordinates I 
got back from WinWindowToDisplayPt. Apparently the 
clipping rectangle is intersected with the draw window's 
boundaries.

Having met with failure trying to draw upon whatever 
window happens to be the draw window, I then tried a new 
approach: creating a new window, using WinCreateWindow, 
WinEnableWindow, WinSetDrawWindow, etc. However, nothing 
appears on the display.

Does anybody have any sample code they wouldn't mind 
sharing? I've searched the knowledge base in vain. 
Thanks.

--
Roger Chaplin <[EMAIL PROTECTED]>

Reply via email to