On Mon, May 29, 2000 at 04:52:49PM +0800, Dmitry Timoshkov wrote:
> >From the CorelWine log:
> ----------------------------
> revision 1.11
> date: 2000/02/07 20:12:27;  author: jima;  state: Exp;  lines: +30 -0
> Here is an update for CBDropDown() in combo.c.
> It's done for a bug #337534.
> Before Combo Box was dropping only down no matter of a screen size.
> With this update if a dropped list gets beyond of a screen size it goes
> up, otherwise - down.

+
+   /*Now we should know screen size. */
+   hWnd = GetDesktopWindow();
+   wndPtr = WIN_FindWndPtr( hWnd );
+
+   if( hWnd )
+   {
+     GetClientRect( hWnd, &DesktopRect );
+   }
+
+   WIN_ReleaseWndPtr( wndPtr );

What strange hack is this? Why does it lock those windows?

Cioa, Marcus

Reply via email to