pramod.s Posted March 21, 2013 Share Posted March 21, 2013 Hello, I have extended InterfaceWindow class such that I create an child window rather than a popup one, so that the window created acts according to it's parent window. Have just added window style as WS_CHILD It has caused an issue, where for, INTERFACE_FRAME option, there is lot of flickering occurring that is, the frame refresh for child window and parent is overlapping and I am unable to view the content of child window properly. This only occurs for windows (CreatWindowEx) but works fine for Linux (XCreateWindow). Thanks Link to comment
manguste Posted March 21, 2013 Share Posted March 21, 2013 Could you provide a screenshot? Link to comment
pramod.s Posted March 21, 2013 Author Share Posted March 21, 2013 You won't notice the flickering as the screenshot is not able to capture this issue and the flicker very high. I found that this issue occurs only for Windows 7 Basic & Windows Classic Theme (Basic & High Contrast Theme), but work quiet well for other themes. I am using Windows 7 Enterprise on 64-bit OS Link to comment
pramod.s Posted March 25, 2013 Author Share Posted March 25, 2013 Can anyone provide a solution to this? Link to comment
ulf.schroeter Posted March 25, 2013 Share Posted March 25, 2013 You should provide a minimal test scene as otherwise nobody can reproduce the problem and suggest a solution Link to comment
manguste Posted March 25, 2013 Share Posted March 25, 2013 Yep, I'm afraid the description is far from being enough, we need a test scene. // Topic moved to Bugs Link to comment
pramod.s Posted March 26, 2013 Author Share Posted March 26, 2013 I will provide you the sample in a day or two, but a quick replication would occur if you do following step In InterfaceWindow.cpp replace the line // window style style = WS_POPUP; to style = WS_CHILD; Rebuild this InterfaceWindow DLL and Change the windows theme to Basic Windows Classic. Now load this DLL in Interface sample in SDK Link to comment
pramod.s Posted March 26, 2013 Author Share Posted March 26, 2013 I found the solution, the application window (AppWindow) has not been set with WS_CLIPCHILDERN style flag, as a result flickering is caused. If the flag is set than, I think the problem would be solved. @manguste: Can this be confirmed that it is the cause & solution! Link to comment
necris Posted April 2, 2013 Share Posted April 2, 2013 pramod.sIt would be really useful if you provided a test scene for reproduction. Link to comment
Recommended Posts