Hello all,
I currently have an issue with a module development for FS2004.
I have added a new menu to main FS menubar for the module and one the item opens a windows DialogBox with DoModal().
The problem is that the Dialog is not always visible.
Sometimes it works fine, sometimes I have to switch to windows and go back to be able to see the dialog.
Here is the kind of hack (ValidateRect) I am trying to use but it does not work always:
case ID_CONNECT_MENUITEM:
showConnect=true;
....
case WM_PAINT:
if(showConnect)
{
CDialogConnect dlgConnect;
dlgConnect.DoModal();
showConnect=false;
}
RECT rectFSwnd;
GetWindowRect(hwnd, &rectFSwnd);
ValidateRect(hwnd, &rectFSwnd);
return true;
...
Does not anyone has any idea on this?
I wonder how the developers of FS Recorder and FSPassenger managed to solve this problem.
Thanks a lot,
Francois.
I currently have an issue with a module development for FS2004.
I have added a new menu to main FS menubar for the module and one the item opens a windows DialogBox with DoModal().
The problem is that the Dialog is not always visible.
Sometimes it works fine, sometimes I have to switch to windows and go back to be able to see the dialog.
Here is the kind of hack (ValidateRect) I am trying to use but it does not work always:
case ID_CONNECT_MENUITEM:
showConnect=true;
....
case WM_PAINT:
if(showConnect)
{
CDialogConnect dlgConnect;
dlgConnect.DoModal();
showConnect=false;
}
RECT rectFSwnd;
GetWindowRect(hwnd, &rectFSwnd);
ValidateRect(hwnd, &rectFSwnd);
return true;
...
Does not anyone has any idea on this?
I wonder how the developers of FS Recorder and FSPassenger managed to solve this problem.
Thanks a lot,
Francois.

