MDI menus appending items instead of inserting

Article ID: 839
Last updated: 05 Feb, 2008
Article ID: 839
Last updated: 05 Feb, 2008
Revision: 1
Views: 2778
Posted: 29 Aug, 1997
by Dean J.
Updated: 05 Feb, 2008
by Dean J.
Problem


In the MDI menu, when I use the insert function, menu items are appended to the item list instead of inserted at the specified location.


Cause


An additional flag is not being set in the doMDIchange function in the file mdi.cpp to account for Windows 95 and Windows NT 4.0.


Action


Go to the zApp source directory. Open the file mdi.cpp. Add the following:

#include
in the function
void doMDIchange(zEvent *Ev)
the current line reads:

 if (IsZoomed((HWND)(p->sysId())))
    sub=1;
 else
    sub=0;

it should now be changed to:

if (IsZoomed((HWND)(p->sysId()))){
    if( ZIWIN95PLUSCHECK ){
       sub=3;
    }
    else{
       sub=1;
    }
}
else{
      sub=0;
}
This article was:   Helpful | Not helpful
Report an issue
Article ID: 839
Last updated: 05 Feb, 2008
Revision: 1
Views: 2778
Posted: 29 Aug, 1997 by Dean J.
Updated: 05 Feb, 2008 by Dean J.

Others in this category