Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Adding form properties during runtime

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Adding form properties during runtime
#3423
Posted by: 2004-02-27 05:54:16
I have a class which publicly inherits from wxFrame.  Is has the usual constructor:

MyClass::MyClass () : wxFrame(NULL, -1, "Title", wsDefaultPosition, wxDefaultSize, wxNO_FULL_PAINT_ON_RESIZE | wxSYSTEM_MENU.. etc) {
   ...
}

My question is, during runtime I want to change the options for the base class constructor.  For instance, during runtime I want to take away the system menu.  How would I do this?

Thanks!

Message2. Re: Adding form properties during runtime
#3428
Posted by: upCASE 2004-02-27 19:57:28
Hi!
Straight from the source of wxWindowMSW:
SetWindowStyleFlag(long flags);
Not sure if this works with other releases, but I tried it on Windows by setting the flags to 0 and it worked.

upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0