User forums > Using Code::Blocks

wxSmith question Window styles

<< < (2/2)

tigerbeard:

--- Quote from: ollydbg on February 04, 2024, 04:39:01 am ---I don't find a better way to do that inside the wxSmith. But you can use a hack.

--- Code: ---#define wxDEFAULT_FRAME_STYLE bNoBorder // change the wxDEFAULT_FRAME_STYLE to bNoBorder
 ...
 //(*Initialze(Myframe)
 Create( parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE );

--- End code ---

Or, you can use a better way, you can just restore the macro definition later, see this post: Temporarily overwrite a macro in C preprocessor - Stack Overflow

--- End quote ---

That is a pretty nice idea, very helpful. A you say its qute a mess but when used in rare cases and when its documented well in the code that should be fine.!
Thanks a lot

Navigation

[0] Message Index

[*] Previous page

Go to full version