ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

statusbar.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.