Hey all, I'v got a small problem with my Win32::GUI windows. When I use default color scheme on my Windows all my Win32::GUI windows look just fine. Whenever I use custom color scheme (e.g. change the color of "Menu" to be different from color of "3D Objects" in Desktop Properties->Appearance) all my windows are created with color of "Menu"! I do not use any special options creating windows. I'd be able to live with that but all other objects (buttons, labels etc) are created with color of "3D Objects" (please look at screenshot attached). The workaround is to use custom class for a window. The only way to make the window of right color is following: $class = new Win32::GUI::Class ( -name=>"custom", -color=>16 # COLOR_BTNSHADOW ); $window = new Win32::GUI::Window (-class=>$class, ... ); What I want is to clarify if this is designed behavior or do I miss any -addstyle flags. PS. I created sample dialog window using MFC and dialog with default styles is created with right color Thanks, Max
<<attachment: window.JPG>>