Search found 65 matches

by Nelson Joseph
Tue Aug 23, 2011 3:30 pm
Forum: C++ Development
Topic: 'SetFocus' failed with error 0x00000057 (the parameter is in
Replies: 15
Views: 7719

Re: 'SetFocus' failed with error 0x00000057 (the parameter i

doublemax,

My Application does not crash. It just throws this message whenever I click the taskbar button ( for minimizing/restoring )
My task is to rectify it. It seems that it happens in Windows 7 and MSVS 2008
by Nelson Joseph
Tue Aug 23, 2011 2:50 pm
Forum: C++ Development
Topic: 'SetFocus' failed with error 0x00000057 (the parameter is in
Replies: 15
Views: 7719

Re: 'SetFocus' failed with error 0x00000057 (the parameter i

Thank you for your quick reply.

Do you think this message occurs because of compiler/library settings?
I have attached a screen-shot. Please find attached document. It happens only on clicking in the taskbar button (minimizing/restoring)

Thanks.
by Nelson Joseph
Tue Aug 23, 2011 11:17 am
Forum: C++ Development
Topic: wxAuiManager Crashing Problem..
Replies: 5
Views: 1184

Re: wxAuiManager Crashing Problem..

Have you included wxmsw28d_aui.lib in your Linker settings?
by Nelson Joseph
Tue Aug 23, 2011 10:51 am
Forum: C++ Development
Topic: 'SetFocus' failed with error 0x00000057 (the parameter is in
Replies: 15
Views: 7719

Re: 'SetFocus' failed with error 0x00000057 (the parameter i

Thanks for your quick reply. The sample/sashtest is not crashing but it shows the following message in output window while we are trying to restore the window after minimize it. Since I also use sash window in my application the same error message appears. 16:14:42: ..\..\src\msw\window.cpp(643): 'S...
by Nelson Joseph
Tue Aug 23, 2011 5:29 am
Forum: C++ Development
Topic: 'SetFocus' failed with error 0x00000057 (the parameter is in
Replies: 15
Views: 7719

Re: 'SetFocus' failed with error 0x00000057 (the parameter i

Thanks briceandre, you are right. I am not calling SetFocus() function explicitly. But I am using Sash window. If I remove the Sash Window then it wont occur. Since the code is too long to post here. I can post the part of code which you need. If I comment the following code, then it won't say any p...
by Nelson Joseph
Mon Aug 22, 2011 11:37 am
Forum: C++ Development
Topic: 'SetFocus' failed with error 0x00000057 (the parameter is in
Replies: 15
Views: 7719

Re: 'SetFocus' failed with error 0x00000057 (the parameter i

The call stack is: > MySampleApp.exe!wxWindow::SetFocus() Line 643 C++ MySampleApp.exe!wxWindowBase::SetFocusFromKbd() Line 546 + 0x17 bytes C++ MySampleApp.exe!wxWindow::SetFocusFromKbd() Line 665 C++ MySampleApp.exe!wxSetFocusToChild(wxWindow * win=0x00a120a8, wxWindow * * childLastFocused=0x00a12...
by Nelson Joseph
Sat Aug 06, 2011 6:06 am
Forum: C++ Development
Topic: 'SetFocus' failed with error 0x00000057 (the parameter is in
Replies: 15
Views: 7719

'SetFocus' failed with error 0x00000057 (the parameter is in

Dear All,
Whenever I click the application on the taskbar to restore the window (after minimizing), the following error occurs:

Code: Select all

'SetFocus' failed with error 0x00000057 (the parameter is incorrect.).
I am using Visual Studio 2008, wxWidgets 2.8.11

Any suggestion would be helpful. Thanks in advance.
by Nelson Joseph
Tue Feb 10, 2009 2:46 pm
Forum: C++ Development
Topic: wxStaticText does not resize correctly
Replies: 10
Views: 1679

Hi
Did you try the following?

Code: Select all

wxWindow::DoUpdateWindowUI
virtual void DoUpdateWindowUI(wxUpdateUIEvent& event)
by Nelson Joseph
Wed Nov 26, 2008 12:42 pm
Forum: C++ Development
Topic: wxPostEvent problem
Replies: 5
Views: 582

This is the part of my code: ... const wxEventType MyExcitingEvent = wxNewEventType(); ... EVT_BUTTON(ID_PNL1_BTN2, MyFrame::OnMyFirstEvent) EVT_BUTTON(ID_PNL1_BTN1, MyFrame::OnMySecondEvent) ... wxCommandEvent MyEvent( MyExcitingEvent ); wxCommandEvent evt; OnMyFirstEvent( evt ); OnMySecondEvent( e...
by Nelson Joseph
Wed Nov 26, 2008 8:02 am
Forum: C++ Development
Topic: is it possible to have a custom scroll bar using wxwidgets?
Replies: 5
Views: 950

Try derive your own class from wxScrollBar
by Nelson Joseph
Wed Nov 26, 2008 7:54 am
Forum: C++ Development
Topic: wxPostEvent problem
Replies: 5
Views: 582

wxPostEvent problem

Hi all, I have created GUI application. In that application I have recorded what the user has done sequentially ( i.e events generated by controls), and I need to redo all the operations what the user has done, without pressing any controls( i.e through a function from there I read the sequence of ...
by Nelson Joseph
Tue Nov 25, 2008 4:59 pm
Forum: C++ Development
Topic: Add Scroll Window on wxPanel
Replies: 5
Views: 3434

Thank you very much sir. Actually I have wxFrame, in that frame I created sizer and add a panel with the size of wxSize( 1024 , 140 ) Can I create a splitter window on the panel only? not on the frame
by Nelson Joseph
Tue Nov 25, 2008 5:37 am
Forum: C++ Development
Topic: Add Scroll Window on wxPanel
Replies: 5
Views: 3434

Than you sir.
Is there any way to add a wxSashLayoutWindow on top of the panel?
by Nelson Joseph
Mon Nov 24, 2008 1:34 pm
Forum: C++ Development
Topic: Add Scroll Window on wxPanel
Replies: 5
Views: 3434

Add Scroll Window on wxPanel

Hi all, I have created a wxScrolledWindow inside the frame. It works fine. But when I try to create on top of the panel. The scrolling is not properly working, and the thumb size is also not automatically reducing/increasing. Can anybody help me? wxPanel* panel = new wxPanel( this ) wxScrolledWindow...
by Nelson Joseph
Thu Nov 06, 2008 4:34 pm
Forum: C++ Development
Topic: Using wxPanel/wxSizers
Replies: 10
Views: 1794

Hi try the following code:

Code: Select all

m_panel->SetSizer( sizer1 );
m_panel->SetAutoLayout( true );
sizer1->SetSizeHints( m_panel );
sizer1->Fit( m_panel );