Hello,
I would like to hide the default title bar of the k-meleon's main window and replace it with a custom title bar drawn in HTML. I already did that with xulrunner and prism (ex-webrunner) which are also based on gecko.
With Xulrunner/prism I set the hidechrome attribute of the main window to false and I used a javascript in the HTML document to perform the moving stuff. Hidechrome also forbid the resize of the window which is a feature needeed too.
So I took a look to k-meleon's xul and xbl files to reproduce it. But I cannot find where to set the hidechrome attribute. I'm not even sure that this will do the job on the main window with k-meleon.
Has someone ever played with the hidechrome attribute of the main window ? Some tips about it ?
Thanks,
Christophe
NB : I also took a look to C++ code. I have not currently a VC++ Pro but I guess I could add few lines of code in the PreCreateWindow method of CBrowserFrame (found in BrowserFrm.cpp). Something like :
LONG nHideChromeStyle = GetWindowLong(hWnd, GWL_STYLE);
nHideChromeStyle&=~WS_CAPTION & ~WS_THICKFRAME &~WS_MAXIMIZEBOX &~WS_MINIMIZEBOX ;
SetWindowLong(hWnd, GWL_STYLE, nHideChromeStyle);
It already works in a plug-in based on fullscreen. cpp I'm able to built with VC++ 2008 Express Edition ... but I have a bad visual effect because the window is built before the plug-in's execution.
I'm going to search for a VC++ Pro in my neighbourhood but if I can avoid to hack the C++ code and use the hidechrome attribute instead I will be an happier for sure