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 */ |
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 |
|
|