BOOL WRibbonHook ( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) { Bool ret; WAccelEditInfo *einfo; _wtouch(hwnd); _wtouch(wParam); _wtouch(lParam); einfo = WGetCurrentEditInfo (); if ( !einfo || !einfo->ribbon ) { return( FALSE ); } ret = FALSE; switch ( msg ) { case WM_DESTROY: WCloseToolBar ( einfo->ribbon ); einfo->ribbon = NULL; break; } return ( ret ); }
bool WRibbonHook( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) { bool ret; WMenuEditInfo *einfo; _wtouch( hwnd ); _wtouch( wParam ); _wtouch( lParam ); einfo = WGetCurrentEditInfo(); if( einfo == NULL || einfo->ribbon == NULL ) { return( false ); } ret = false; switch( msg ) { case WM_DESTROY: WCloseToolBar( einfo->ribbon ); einfo->ribbon = NULL; break; } return( ret ); }
BOOL WStatusWndProc( HWND hWnd, unsigned msg, UINT wParam, LONG lParam ) { /* touch unused vars to get rid of warning */ _wtouch( hWnd ); _wtouch( wParam ); _wtouch( lParam ); _wtouch( msg ); return( FALSE ); }
int WRAPI WRMemChkRange( void *start, size_t len ) { #ifdef TRMEM return( _trmem_chk_range( start, len, _trmem_guess_who(), TRMemHandle ) ); #else _wtouch( start ); _wtouch( len ); return( TRUE ); #endif }
int WINAPI LibMain( HINSTANCE inst, WORD dataseg, WORD heapsize, LPSTR cmdline ) { _wtouch( dataseg ); _wtouch( heapsize ); _wtouch( cmdline ); __win_alloc_flags = GMEM_MOVEABLE | GMEM_SHARE; __win_realloc_flags = GMEM_MOVEABLE | GMEM_SHARE; ref_count = 0; WSetEditInstance( inst ); return( TRUE ); }
int WR_EXPORT WRCtl3DInit( HINSTANCE inst ) { DWORD ver; BYTE vm; _wtouch( inst ); ver = GetVersion(); vm = (BYTE)(ver & 0x000000FF); if( vm >= 0x04 ) { return( TRUE ); } WRCtl3DDLLInit(); #if defined( WR_USE_3D ) if( !Ctl3dRegister( inst ) ) { return( FALSE ); } if( !Ctl3dAutoSubclass( inst ) ) { return( FALSE ); } #endif return( TRUE ); }
void WInitEditWindows( HINSTANCE inst ) { _wtouch( inst ); WEditWinColor = GetSysColor( COLOR_BTNFACE ); WEditWinBrush = CreateSolidBrush( WEditWinColor ); WMenuEditWinProc = (DLGPROC)MakeProcInstance( (FARPROC)WMenuEditProc, inst ); }
WINEXPORT BOOL CALLBACK WTestProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ) { RECT r; _wtouch( wParam ); _wtouch( lParam ); if( message == WM_INITDIALOG ) { GetWindowRect( hDlg, &r ); appWidth = r.right - r.left + 10; appHeight = r.bottom - r.top + 85; DestroyWindow( hDlg ); return( TRUE ); } return( FALSE ); }
void WR_EXPORT WRCtl3DFini( HINSTANCE inst ) { _wtouch( inst ); #if defined( WR_USE_3D ) Ctl3dUnregister( inst ); #endif WRCtl3DDLLFini(); }
void WRibbonHelpHook ( HWND hwnd, WPARAM wParam, BOOL pressed ) { _wtouch(hwnd); if ( !pressed ) { WSetStatusText ( NULL, NULL, "" ); } else { WDisplayHint ( NULL, wParam ); } }
static void wRibbonHelpHook( HWND hwnd, ctl_id id, bool pressed ) { _wtouch( hwnd ); if( !pressed ) { WSetStatusText( NULL, NULL, "" ); } else { WDisplayHint( NULL, id ); } }
int WRAPI WRMemValidate( void *ptr ) { #ifdef TRMEM return( _trmem_validate( ptr, _trmem_guess_who(), TRMemHandle ) ); #else _wtouch( ptr ); return( TRUE ); #endif }
bool WEditSymbols( HWND parent, WRHashTable **symbol_table, HINSTANCE inst, HELP_CALLBACK hcb ) { WRHashEntryFlags flags; FARPROC cb; bool ret; _wtouch( inst ); if( symbol_table == NULL || *symbol_table == NULL ) { return( FALSE ); } flags = WR_HASHENTRY_ALL; cb = MakeProcInstance( (FARPROC)hcb, inst ); ret = WREditSym( parent, symbol_table, &flags, cb ); FreeProcInstance( (FARPROC)cb ); return( ret ); }
BOOL WINAPI DllMain( HINSTANCE inst, DWORD dwReason, LPVOID lpReserved ) { int ret; _wtouch( lpReserved ); ret = TRUE; switch( dwReason ) { case DLL_PROCESS_ATTACH: ref_count = 0; WSetEditInstance( inst ); break; case DLL_PROCESS_DETACH: break; case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: /* do nothing here */ break; } return( ret ); }
int WINAPI WEP( int parm ) { _wtouch( parm ); return( TRUE ); }
WRFileType WRIdentifyWinRCFile( const char *file_name ) { _wtouch( file_name ); return( WR_WIN_RC ); }