bool WSetEditWindowID( HWND dlg, uint_16 id, bool is_pop_sep, char *symbol ) { bool ok; ok = (dlg != (HWND)NULL); if( ok ) { if( is_pop_sep ) { ok = WSetEditWithStr( GetDlgItem( dlg, IDM_MENUEDID ), "" ); } else { if( symbol != NULL ) { ok = WSetEditWithStr( GetDlgItem( dlg, IDM_MENUEDID ), symbol ); } else { ok = WSetEditWithSINT32( GetDlgItem( dlg, IDM_MENUEDID ), (int_32)id, 10 ); } } } if( ok ) { if( is_pop_sep ) { ok = WSetEditWithStr( GetDlgItem( dlg, IDM_MENUEDNUM ), "" ); } else { ok = WSetEditWithSINT32( GetDlgItem( dlg, IDM_MENUEDNUM ), (int_32)id, 10 ); } } return( ok ); }
bool WSetEditWindowID( HWND dlg, char *symbol, uint_16 id ) { bool ok; ok = (dlg != (HWND)NULL); if( ok ) { if( symbol != NULL ) { ok = WSetEditWithStr( GetDlgItem( dlg, IDM_ACCEDCMDID ), symbol ); } else { ok = WSetEditWithSINT32( GetDlgItem( dlg, IDM_ACCEDCMDID ), (int_32)id, 10 ); } } if( ok ) { ok = WSetEditWithSINT32( GetDlgItem( dlg, IDM_ACCEDCMDNUM ), (int_32)id, 10 ); } return( ok ); }