Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenstatusbar.c
Go to the documentation of this file.
00001 /* 00002 * PROJECT: ReactOS Applications Manager 00003 * LICENSE: GPL - See COPYING in the top level directory 00004 * FILE: base/applications/rapps/statusbar.c 00005 * PURPOSE: StatusBar functions 00006 * PROGRAMMERS: Dmitry Chapyshev (dmitry@reactos.org) 00007 */ 00008 00009 #include "rapps.h" 00010 00011 HWND hStatusBar; 00012 00013 BOOL 00014 CreateStatusBar(HWND hwnd) 00015 { 00016 hStatusBar = CreateWindowExW(0, 00017 STATUSCLASSNAMEW, 00018 NULL, 00019 WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP, 00020 0, 0, 0, 0, 00021 hwnd, 00022 (HMENU)IDC_STATUSBAR, 00023 hInst, 00024 NULL); 00025 00026 if (!hStatusBar) 00027 { 00028 /* TODO: Show error message */ 00029 return FALSE; 00030 } 00031 00032 return TRUE; 00033 } 00034 00035 VOID 00036 SetStatusBarText(LPCWSTR lpszText) 00037 { 00038 if (hStatusBar) 00039 { 00040 SendMessageW(hStatusBar, SB_SETTEXT, SBT_NOBORDERS, (LPARAM)lpszText); 00041 } 00042 } Generated on Fri May 25 2012 04:15:43 for ReactOS by
1.7.6.1
|