/[winpt]/trunk/Src/wptW32API.cpp
ViewVC logotype

Diff of /trunk/Src/wptW32API.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 6 by twoaday, Mon Apr 4 06:59:24 2005 UTC
# Line 325  int Line 325  int
325  dialog_box_param( HINSTANCE hinst, LPCTSTR name, HWND parent, DLGPROC fnc,  dialog_box_param( HINSTANCE hinst, LPCTSTR name, HWND parent, DLGPROC fnc,
326                                    LPARAM param, LPCTSTR title, int title_id )                                    LPARAM param, LPCTSTR title, int title_id )
327  {  {
328  #ifndef LANG_DE      #ifndef LANG_DE
329      if( FindWindowEx( GetDesktopWindow(), NULL, NULL, title ) )      if( FindWindowEx( GetDesktopWindow(), NULL, NULL, title ) )
330          return -1;                return -1;      
331  #else      #else
332      char strdesc[256];      char strdesc[256];
333      LoadString( glob_hinst, title_id, strdesc, sizeof (strdesc) -1 );      LoadString( glob_hinst, title_id, strdesc, sizeof (strdesc) -1 );
334      if( FindWindowEx( GetDesktopWindow(), NULL, NULL, strdesc ) )      if( FindWindowEx( GetDesktopWindow(), NULL, NULL, strdesc ) )
335          return -1;          return -1;
336  #endif      #endif
337            
338      return DialogBoxParam( hinst, name, parent, fnc, param );      return DialogBoxParam( hinst, name, parent, fnc, param );
339  } /* dialog_box_param */  } /* dialog_box_param */
# Line 428  center_window2 (HWND hwndChild, HWND sty Line 428  center_window2 (HWND hwndChild, HWND sty
428      if (style == HWND_TOPMOST || style == HWND_NOTOPMOST)      if (style == HWND_TOPMOST || style == HWND_NOTOPMOST)
429          flags = SWP_NOMOVE | SWP_NOSIZE;          flags = SWP_NOMOVE | SWP_NOSIZE;
430      SetWindowPos (hwndChild, style? style : NULL, xNew, yNew, 0, 0, flags);      SetWindowPos (hwndChild, style? style : NULL, xNew, yNew, 0, 0, flags);
                     
431  }  }
432    
433    

Legend:
Removed from v.2  
changed lines
  Added in v.6

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26