|
![]() |
#1 |
Участник
|
Небольшой штрих
Цитата:
Сообщение от DSPIC
![]() X++: static void hWndStatusBar(Args _args) { HWnd hWndStatusBar; ; hWndStatusBar = WinApi::findWindowEx(infolog.hWnd(), 0, identifierstr(AxChildFrame), ''); hWndStatusBar = WinApi::findWindowEx(hWndStatusBar, 0, identifierstr(AxStatusBar), ''); WinApi::setWindowText(hWndStatusBar, "234"); } X++: static void jbStatusBarTextDax40(Args _args) { HWND hWndChildFrame = WinApi::findWindowEx( infolog.hWnd(), 0, identifierstr( AxChildFrame ), "StatusBar" ) ; HWND hWndStatusBar = WinApi::findWindowEx( hWndChildFrame, 0, identifierstr(AxStatusBar), "" ) ; ; if( hWndStatusBar ) WinApi::setWindowText( hWndStatusBar, "demo text in status bar" ) ; } X++: hWndStatusBar = WinApi::findWindowEx(infolog.hWnd(), 0, identifierstr(AxChildFrame), ''); UPD: результат тестирования исходного варианта X++: static void hWndStatusBar(Args _args) { HWnd hWndStatusBar; ; hWndStatusBar = WinApi::findWindowEx(infolog.hWnd(), 0, identifierstr(AxChildFrame), ''); info( strfmt( "%1 - %2", hWndStatusBar, WinAPI::getWindowText( hWndStatusBar ) ) ) ; hWndStatusBar = WinApi::findWindowEx(hWndStatusBar, 0, identifierstr(AxStatusBar), ''); info( strfmt( "%1 - %2", hWndStatusBar, WinAPI::getWindowText( hWndStatusBar ) ) ) ; WinApi::setWindowText(hWndStatusBar, "234"); } Последний раз редактировалось petergunn; 25.05.2009 в 11:31. |
|
Теги |
ax4.0, faq, statusbar, полезное, программно |
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|