[[ header START ]]

Welcome to OS2.GURU site! (eComStation.RU)

Select your language: Russian English Deutch Spanish Italian Portuguese Czech Polish French

Frequently asked questions and answers:
telegram

Форум обсуждение

telegram

Send message

telegram

[ +7-981-8529467 (Санкт-Петербург)

telegram

t.me/os2_guru

eComStation.RU


ru · en · de · es · it · pt · cz · pl · fr
OS/2 - это совершенно другая операционная система для PC (ArcaOS, eComStation, IBM OS/2 Warp)
Программы, новости, статьи, поддержка пользователей, оборудование, вопросы и ответы.
 
[Что такое OS/2?  Новости  Установка  Обновление  
 
 
Применение  Будущее  Сообщество  Проекты  

[Как заработать в OS/2?

Как купить OS/2 дискету?

Идеи для фанатов OS/2

*

(Карта сайта)

 
 
[[ head-3-search ]]

Отчет: OS/2 совместимое оборудование

[[ head-3-search END ]]

 
Обновление

 
Программы

 
(Санкт-Петербург)

 
Преимущества (1)

 
Разработчику (1)

 
(Пайпы программ)

 
Компании: (1)

 
История (1):

 
(Бонусы)

 
Советы:

 
(Барьеры и решения)

 
Технологии: (1)

 
(Применение в науке, лаборатории, ..)

 

 
Готовые решения:

 
Новая eComStation:

 
Будущее: (1)

 
(Ссылки на другие сайты)

 
(Картинка дня)

 
Артефакты OS/2

 
Гаджеты

eCo Software Developer Connection


About DevCon
Subscription to DevCon
Budget of DevCon
FAQ


Roadmap
eCo Software runtime
eCo Software toolkit
Contacts

  Вы можете перевести эту страничку на русский язык
Присылайте готовый текст через веб-форму

/ Guidelines: Additional control elements / Progress-bar / Usage of Progress-bar

Usage of Progress-bar

In PROGRESS.DLL version 2.0 PrgShowDlg() function changed. New features were added, but backwards compatibility was preserved, so additional parameters are optional. Here is new syntax:

HWND APIENTRY PrgShowDlg(HWND hwndParent,      // Progress dialog parent window
                         HWND hwndOwner,       // Progress dialog owner window
                         USHORT fsFlags,       // Flags to specify properties 
                                               // of the Progress   Dialog. 
                                               // PRS_* constants are to be used.
                         HMODULE hmodResource, // Module handle of the resource 
                                               // file. Use -1 for PROGRESS.DLL, 
                                               // 0 - for executable, 
                                               // other - module handle, obtained 
                                               // with DosLoadModule call.
                         ULONG ulIcon,         // Resource ID of the PNG 
                                               // sequence in the hmodResource. 
                                               // For PROGRESS.DLL ID_PROGRESS_PNG_ICON* 
                                               // constants to be used. Ignored if 
                                               // PRS_ICON flag is not set.
                         ULONG ulBar,          // Resource ID of the pair of PNG images 
                                               // in the hmodRsource. For PROGRESS.DLL 
                                               // ID_PROGRESS_PNG_BAR constant to be used. 
                                               // Ignored if PRS_BAR and PRG_IMAGE flags 
                                               // are not set.
                         USHORT usId,          // Progress Bar dialog control ID. Used 
                                               // to recognize Progress Dialog among 
                                               // other controls and to determine command 
                                               // value of WM_COMMAND message sent by 
                                               // Progress Dialog to its owner, when 
                                               // user tries to interrupt a process.
                         PSZ pszTitle,         // Title of the dialog control. If NULL, 
                                               // progress dialog window have no 
                                               // titlebar and no frame.
                         PSZ pszButton1,       // Caption on the button to allow user 
                                               // to interrupt process. If NULL no button 
                                               // apperas in the dialog and process cannot 
                                               // be interrupted.
                         PSZ pszCaption1,      // The first (topmost) caption in the 
                                               // dialog. Could be NULL, if the caption 
                                               // is unused
                         PSZ pszCaption2,      // The second caption in the dialog. Could 
                                               // be NULL, if the caption is unused
                         PSZ pszCaption3,      // The third caption in the dialog. 
                                               // Could be NULL, if the caption is 
                                               // unused. If this caption is too 
                                               // long it will be broken into several lines.
                        [PSZ pszButon2[ ,      // Button 2 caption. Significant 
                                               // only when PRS_BUT_2 flag is specified.
                         PSZ pszButton3[ ,     // Button 3 caption. Significant only when 
                                               // PRS_BUT_3 flag is specified.
                         PSZ pszButtonHelp[ ,  // Help Button caption. Significant 
                                               // only when PRS_BUT_HELP flag is specified.
                         LANGE hLange]]]]);    // LANGE handle. Significant only 
                                               // when PRS_OWNLANGE flag is specified.

As you can see, in version 2.0 progress dialog can contain up to 3 action buttons and one help button, Just specify appropriate PRS_BUT_* flag and button caption parameter. You can also specify LANGE handle to let PROGRESS.DLL automatically translate all captions using LANGE library.

Another additional flag is PRS_DISMISS. If this flag is set, progress bar dialog will be automatically dismissed, when any action button (not help button) is clicked. Otherwise, dialog will not be dismissed, WM_COMMAND message will be posted to the dialog's owner instead.

 

 
Обучение новичков

Списки протестированного OS/2 оборудования

 
Статьи


   
  Почему eComStation?
Возможности
Особенности
Применение
Ролики и скриншоты
   eComStation для
для бизнесменов
для студентов и инженеров
для продавцов компьютеров
сообщество пользователей
   Разработчик
Распространить программу
Описание API, библиотеки
Начать новый проект
Конкурсы
   Программы
Он-лайн каталог
Выбрать через eCo Market
   Служба поддержки
Отправить вопрос
Купить eComStation
Вопросы и ответы
Обучение новичков
 
 
© 2001 - 2021 eCo Software, All rights reserved
Сибирский Медведь технологическая компания
eComStation Serenity Systems International • OS/2 Warp IBM Corporation • ArcaOS Arca Noae