Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Начинающим";
Текущий архив: 2006.07.16;
Скачать: [xml.tar.bz2];

Вниз

WinExec   Найти похожие ветки 

 
userrrrrrrr   (2006-06-27 13:18) [0]

WinExec(

   LPCSTR lpCmdLine, // address of command line
   UINT uCmdShow  // window style for new application
  );
что такое uCmdShow и почему оно не работает если написать например SW_MINIMIZE а если написать цифру то что она будет означать?


 
Ega23 ©   (2006-06-27 13:25) [1]


> что такое uCmdShow и почему оно не работает если написать
> например SW_MINIMIZE а если написать цифру то что она будет
> означать?
>




uCmdShow

Specifies how a Windows-based application window is to be shown and is used to supply the wShowWindow member of the STARTUPINFO parameter to the CreateProcess function. For a list of the acceptable values, see the description of the nCmdShow parameter of the ShowWindow function. For a non-Windows - based application, the PIF file, if any, for the application determines the window state.

Specifies how the window is to be shown. This parameter is ignored the first time an application calls ShowWindow, if the program that launched the application provides a STARTUPINFO structure. Otherwise, the first time ShowWindow is called, the value should be the value obtained by the WinMain function in its nCmdShow parameter. In subsequent calls, this parameter can be one of the following values:

Value Meaning
SW_HIDE Hides the window and activates another window.
SW_MAXIMIZE Maximizes the specified window.
SW_MINIMIZE Minimizes the specified window and activates the next top-level window in the Z order.
SW_RESTORE Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when restoring a minimized window.
SW_SHOW Activates the window and displays it in its current size and position.
SW_SHOWDEFAULT Sets the show state based on the SW_ flag specified in the STARTUPINFO structure passed to the CreateProcess function by the program that started the application.
SW_SHOWMAXIMIZED Activates the window and displays it as a maximized window.
SW_SHOWMINIMIZED Activates the window and displays it as a minimized window.
SW_SHOWMINNOACTIVE Displays the window as a minimized window. The active window remains active.
SW_SHOWNA Displays the window in its current state. The active window remains active.
SW_SHOWNOACTIVATE Displays a window in its most recent size and position. The active window remains active.
SW_SHOWNORMAL Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when displaying the window for the first time.


 
Игорь Шевченко ©   (2006-06-27 13:26) [2]


> что такое uCmdShow


window style for new application


 
userrrrr   (2006-06-27 13:42) [3]

дак а цифру можно это тогда как да и вообще только SW_MAXIMIZE работает реально с собственной прогой (только форма вообще пустая)


 
Virgo_Style ©   (2006-06-27 13:52) [4]

userrrrr   (27.06.06 13:42) [3]
дак а цифру можно это тогда как да


ну да так как это там где как в : Windows.pas


 
Ega23 ©   (2006-06-27 14:09) [5]


 { ShowWindow() Commands }
 {$EXTERNALSYM SW_HIDE}
 SW_HIDE = 0;
 {$EXTERNALSYM SW_SHOWNORMAL}
 SW_SHOWNORMAL = 1;
 {$EXTERNALSYM SW_NORMAL}
 SW_NORMAL = 1;
 {$EXTERNALSYM SW_SHOWMINIMIZED}
 SW_SHOWMINIMIZED = 2;
 {$EXTERNALSYM SW_SHOWMAXIMIZED}
 SW_SHOWMAXIMIZED = 3;
 {$EXTERNALSYM SW_MAXIMIZE}
 SW_MAXIMIZE = 3;
 {$EXTERNALSYM SW_SHOWNOACTIVATE}
 SW_SHOWNOACTIVATE = 4;
 {$EXTERNALSYM SW_SHOW}
 SW_SHOW = 5;
 {$EXTERNALSYM SW_MINIMIZE}
 SW_MINIMIZE = 6;
 {$EXTERNALSYM SW_SHOWMINNOACTIVE}
 SW_SHOWMINNOACTIVE = 7;
 {$EXTERNALSYM SW_SHOWNA}
 SW_SHOWNA = 8;
 {$EXTERNALSYM SW_RESTORE}
 SW_RESTORE = 9;
 {$EXTERNALSYM SW_SHOWDEFAULT}
 SW_SHOWDEFAULT = 10;
 {$EXTERNALSYM SW_MAX}
 SW_MAX = 10;



Страницы: 1 вся ветка

Форум: "Начинающим";
Текущий архив: 2006.07.16;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.009 c
2-1151260756
rus0303
2006-06-25 22:39
2006.07.16
использование индекса


10-1122028517
S@shka
2005-07-22 14:35
2006.07.16
Нужно ли создавать новый интерфейс?


1-1149103763
Phoroon~
2006-05-31 23:29
2006.07.16
Иконка чужого окна


2-1151673095
Vitalik__
2006-06-30 17:11
2006.07.16
приложение для интернета


2-1150704258
DmitriyR
2006-06-19 12:04
2006.07.16
Запуск программ с передачей консольного ввода и чтением вывода





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский