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

datetime.c File Reference
#include <math.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <limits.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "commctrl.h"
#include "comctl32.h"
#include "wine/debug.h"
#include "wine/unicode.h"

Go to the source code of this file.

Data Structures

struct  DATETIME_INFO

Defines

#define DT_END_FORMAT   0
#define ONEDIGITDAY   0x01
#define TWODIGITDAY   0x02
#define THREECHARDAY   0x03
#define FULLDAY   0x04
#define ONEDIGIT12HOUR   0x11
#define TWODIGIT12HOUR   0x12
#define ONEDIGIT24HOUR   0x21
#define TWODIGIT24HOUR   0x22
#define ONEDIGITMINUTE   0x31
#define TWODIGITMINUTE   0x32
#define ONEDIGITMONTH   0x41
#define TWODIGITMONTH   0x42
#define THREECHARMONTH   0x43
#define FULLMONTH   0x44
#define ONEDIGITSECOND   0x51
#define TWODIGITSECOND   0x52
#define ONELETTERAMPM   0x61
#define TWOLETTERAMPM   0x62
#define ONEDIGITYEAR   0x71
#define TWODIGITYEAR   0x72
#define INVALIDFULLYEAR   0x73 /* FIXME - yyy is not valid - we'll treat it as yyyy */
#define FULLYEAR   0x74
#define FORMATCALLBACK   0x81 /* -> maximum of 0x80 callbacks possible */
#define FORMATCALLMASK   0x80
#define DT_STRING   0x0100
#define DTHT_DATEFIELD   0xff /* for hit-testing */
#define DTHT_NONE   0x1000
#define DTHT_CHECKBOX   0x2000 /* these should end at '00' , to make */
#define DTHT_MCPOPUP   0x3000 /* & DTHT_DATEFIELD 0 when DATETIME_KeyDown */
#define DTHT_GOTFOCUS   0x4000 /* tests for date-fields */
#define DTHT_NODATEMASK   0xf000 /* to mask check and drop down from others */

Typedefs

typedef struct DATETIME_INFOLPDATETIME_INFO

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (datetime)
int MONTHCAL_MonthLength (int month, int year)
int MONTHCAL_CalculateDayOfWeek (SYSTEMTIME *date, BOOL inplace)
static BOOL DATETIME_SendSimpleNotify (const DATETIME_INFO *infoPtr, UINT code)
static BOOL DATETIME_SendDateTimeChangeNotify (const DATETIME_INFO *infoPtr)
static DWORD DATETIME_GetSystemTime (const DATETIME_INFO *infoPtr, SYSTEMTIME *systime)
static BOOL DATETIME_SetSystemTime (DATETIME_INFO *infoPtr, DWORD flag, const SYSTEMTIME *systime)
static void DATETIME_UseFormat (DATETIME_INFO *infoPtr, LPCWSTR formattxt)
static BOOL DATETIME_SetFormatW (DATETIME_INFO *infoPtr, LPCWSTR format)
static BOOL DATETIME_SetFormatA (DATETIME_INFO *infoPtr, LPCSTR lpszFormat)
static void DATETIME_ReturnTxt (const DATETIME_INFO *infoPtr, int count, LPWSTR result, int resultSize)
static int wrap (int val, int delta, int minVal, int maxVal)
static void DATETIME_IncreaseField (DATETIME_INFO *infoPtr, int number, int delta)
static void DATETIME_ReturnFieldWidth (const DATETIME_INFO *infoPtr, HDC hdc, int count, SHORT *width)
static void DATETIME_Refresh (DATETIME_INFO *infoPtr, HDC hdc)
static INT DATETIME_HitTest (const DATETIME_INFO *infoPtr, POINT pt)
static int DATETIME_GetPrevDateField (const DATETIME_INFO *infoPtr, int i)
static void DATETIME_ApplySelectedField (DATETIME_INFO *infoPtr)
static void DATETIME_SetSelectedField (DATETIME_INFO *infoPtr, int select)
static LRESULT DATETIME_LButtonDown (DATETIME_INFO *infoPtr, INT x, INT y)
static LRESULT DATETIME_LButtonUp (DATETIME_INFO *infoPtr)
static LRESULT DATETIME_Paint (DATETIME_INFO *infoPtr, HDC hdc)
static LRESULT DATETIME_Button_Command (DATETIME_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
static LRESULT DATETIME_Command (DATETIME_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
static LRESULT DATETIME_Enable (DATETIME_INFO *infoPtr, BOOL bEnable)
static LRESULT DATETIME_EraseBackground (const DATETIME_INFO *infoPtr, HDC hdc)
static LRESULT DATETIME_Notify (DATETIME_INFO *infoPtr, const NMHDR *lpnmh)
static LRESULT DATETIME_KeyDown (DATETIME_INFO *infoPtr, DWORD vkCode)
static LRESULT DATETIME_Char (DATETIME_INFO *infoPtr, WPARAM vkCode)
static LRESULT DATETIME_VScroll (DATETIME_INFO *infoPtr, WORD wScroll)
static LRESULT DATETIME_KillFocus (DATETIME_INFO *infoPtr, HWND lostFocus)
static LRESULT DATETIME_NCCreate (HWND hwnd, const CREATESTRUCTW *lpcs)
static LRESULT DATETIME_SetFocus (DATETIME_INFO *infoPtr, HWND lostFocus)
static LRESULT DATETIME_Size (DATETIME_INFO *infoPtr, INT width, INT height)
static LRESULT DATETIME_StyleChanging (DATETIME_INFO *infoPtr, WPARAM wStyleType, STYLESTRUCT *lpss)
static LRESULT DATETIME_StyleChanged (DATETIME_INFO *infoPtr, WPARAM wStyleType, const STYLESTRUCT *lpss)
static LRESULT DATETIME_SetFont (DATETIME_INFO *infoPtr, HFONT font, BOOL repaint)
static LRESULT DATETIME_Create (HWND hwnd, const CREATESTRUCTW *lpcs)
static LRESULT DATETIME_Destroy (DATETIME_INFO *infoPtr)
static INT DATETIME_GetText (const DATETIME_INFO *infoPtr, INT count, LPWSTR dst)
static LRESULT WINAPI DATETIME_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
void DATETIME_Register (void)
void DATETIME_Unregister (void)

Variables

static const WCHAR allowedformatchars [] = {'d', 'h', 'H', 'm', 'M', 's', 't', 'y', 'X', 0}
static const int maxrepetition [] = {4,2,2,2,4,2,2,4,-1}

Generated on Sun May 27 2012 05:07:00 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.