wxFRAME_NO_TASKBAR issue Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
rangana
Experienced Solver
Experienced Solver
Posts: 53
Joined: Fri Apr 11, 2008 5:48 am
Location: Sri lanka

wxFRAME_NO_TASKBAR issue

Post by rangana »

Hi Guys,

I am using the wxFRAME_NO_TASKBAR flag for my Frame, I want to switch off this flag from the Frame (eg. The frame is visible in task bar) dynamically.

So I used the following code. I am on Windows XP.

if(m_frame->HasFlag(wxFRAME_NO_TASKBAR))
m_frame->SetWindowStyleFlag( m_frame->GetWindowStyleFlag() ^ wxFRAME_NO_TASKBAR);

else
m_frame->SetWindowStyleFlag(m_frame->GetWindowStyleFlag() | wxFRAME_NO_TASKBAR);

The switch on/off is done by a check menu item in the Frame itself. But this does not do anything.

The documentation says that some flags cannot be changed once created the frame.

Any Ideas about this please ?

Or
a alternative way to change the flag of this Frame dynamically?

Thanks
Range
rangana
Experienced Solver
Experienced Solver
Posts: 53
Joined: Fri Apr 11, 2008 5:48 am
Location: Sri lanka

Post by rangana »

I figured out that we cannot set wxFRAME_NO_TASKBAR flag once the frame is created. It has to be set , while the frame is created.

Thanks
Range
Post Reply