[Bug 39547] OllyDbg 2.x tooltips steal focus from their parent window

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Oct 1 18:14:29 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=39547

Chituc Georgian <dianaxxyyzz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dianaxxyyzz at gmail.com

--- Comment #2 from Chituc Georgian <dianaxxyyzz at gmail.com> ---
To make tool tips not to steal focus on Photoshop Cs6 (and maybe others apps
too)
I modified /dlls/user32/win.c .

//add this to your include
#include <string.h>
#include <stdio.h>
#include "commctrl.h"


//find this function
HWND WIN_CreateWindowEx( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE
module, BOOL unicode )
{
    INT cx, cy, style, sw = SW_SHOW;
    LRESULT result;
    RECT rect;
    WND *wndPtr;
    HWND hwnd, parent, owner, top_child = 0;
    MDICREATESTRUCTW mdi_cs;
    CBT_CREATEWNDW cbtc;
    CREATESTRUCTW cbcs;


    ///////add this

    if (strcmp ( debugstr_w(className) ,debugstr_w(TOOLTIPS_CLASSW) ) == 0 )
    {
         cs->style = WS_POPUP;
         cs->dwExStyle = 0;
         /* This next line patch for some tools tips that do not dissapear from
screen */
         if ( cs->hInstance == NULL ) 
            return 0;
    }
    /////////////////////

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list