Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » There is time when SC_CLOSE does not work. Collapse All
Subject Author Date
tera tera Oct 20, 2009 - 3:40 AM

Hello.


There is time when SC_CLOSE does not work.

I am troubled.

Please teach a hint of the "Debug".

By my program, there is not the place judging SC_CLOSE.




http://ifreeta.dee.cc/20091019/Untitled4.html

Technical Support Oct 20, 2009 - 9:33 AM

We cannot reproduce this issue in the RibbonBar and RibbonBarMDI sample applications. Could you please suggest us which actions/steps should we do to make the main frame window non-close-able from the first attempt?

tera tera Oct 21, 2009 - 11:42 PM

I made a reproduction program.

There are time when this malfunction happens and the thing that it does not occur.

Please try it several times.


http://ifreeta.dee.cc/20091019/SampleRibbonBarMDIcloseback3.lzh

http://ifreeta.dee.cc/20091019/Untitled9.html

Technical Support Oct 22, 2009 - 12:50 PM

We reproduced this issue in your test project only. But it’s not possible to reproduce it even in your project if there are no MDI child frames open.

It occurs only if the Close menu command in the system menu is clicked by mouse. If we select the Close menu command with keyboard, then the main frame window closes OK.

Interesting thing, that the main frame’s window procedure receives the WM_SYSCOMMAND message with the WPARAM parameter set to SC_CLOSE and passes this message to the default window procedure. But the last procedure does not generate the WM_CLOSE message on this system command.

We just want to notify you we are still working on this problem.