Bool WCreateMenuEditWindow( WMenuEditInfo *einfo, HINSTANCE inst ) { einfo->edit_dlg = JCreateDialogParam( inst, "WMenuEditDLG", einfo->win, WMenuEditWinProc, (LPARAM)einfo ); if( einfo->edit_dlg == (HWND)NULL ) { return( FALSE ); } if( !WCreatePrevWindow( inst, einfo ) ) { return( FALSE ); } SetWindowPos( einfo->edit_dlg, (HWND)NULL, 0, WGetRibbonHeight(), 0, 0, SWP_NOSIZE | SWP_NOZORDER ); return( WInitEditWindow( einfo ) ); }
bool WCreateAccelEditWindow( WAccelEditInfo *einfo, HINSTANCE inst ) { int tabstop; einfo->edit_dlg = JCreateDialogParam( inst, "WAccelEditDLG", einfo->win, WAccelEditWinProc, (LPARAM)einfo ); if( einfo->edit_dlg == (HWND)NULL ) { return( FALSE ); } tabstop = 85; SendDlgItemMessage( einfo->edit_dlg, IDM_ACCEDLIST, LB_SETTABSTOPS, (WPARAM)1, (LPARAM)&tabstop ); SetWindowPos( einfo->edit_dlg, (HWND)NULL, 0, WGetRibbonHeight(), 0, 0, SWP_NOSIZE | SWP_NOZORDER ); return( WInitEditWindow( einfo ) ); }