Closed GoogleCodeExporter closed 9 years ago
What I want is a window without style WS_TILED. hWnd = cefwindow.CreateWindow( title="CefSimple", className="cefsimple", width=800, height=600, icon="icon.ico", windowProc=wndproc) windowInfo = cefpython.WindowInfo() windowInfo.SetAsChild(hWnd) browser = cefpython.CreateBrowserSync( windowInfo, browserSettings={}, navigateUrl=GetApplicationPath("cefsimple.html")) wndStyle = win32gui.GetWindowLong(hWnd,win32con.GWL_STYLE) win32gui.SetWindowLong(hWnd, win32con.GWL_STYLE, wndStyle|(~win32con.WS_TILED)) #It didn't work! #win32gui.SetWindowLong(hWnd, win32con.GWL_STYLE, wndStyle|(~win32con.WS_MAXIMIZE)) #It didn't work! exStyle = win32gui.GetWindowLong(hWnd,win32con.GWL_EXSTYLE) win32gui.SetWindowLong(hWnd, win32con.GWL_EXSTYLE, exStyle|win32con.WS_EX_LAYERED) win32gui.SetLayeredWindowAttributes(hWnd, 0, 200, win32con.LWA_ALPHA) #It work correctly cefpython.MessageLoop() cefpython.Shutdown() It didn't not work correctly.Did I do something wrong? Pls see the attached.
Original issue reported on code.google.com by tempbe...@gmail.com on 20 Mar 2013 at 4:07
tempbe...@gmail.com
Attachments:
This is an Issue Tracker, not a help forum, ask questions on the CEF Python Forum.
Original comment by czarek.t...@gmail.com on 20 Mar 2013 at 4:14
czarek.t...@gmail.com
Original issue reported on code.google.com by
tempbe...@gmail.com
on 20 Mar 2013 at 4:07Attachments: