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 • 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 • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥738.00 ·
 
 
¥1,480.00 ·
 
 
¥397.00 ·
 
 
¥950.00 ·
 
 
¥264.00 ·
 
 
¥1,005.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0