首页 > 代码库 > MFC: functions

MFC: functions

1. WinMain

http://msdn.microsoft.com/en-us/library/aa930760.aspx

1 int WINAPI WinMain(2     HINSTANCE hInstance, 3     HINSTANCE hPrevInstance, 4     LPWSTR lpCmdLine, 5     int nShowCmd 6 );
View Code

 

2. CreateWindow

http://msdn.microsoft.com/en-us/library/aa931018.aspx

 1 HWND CreateWindow(  2   LPCTSTR lpClassName,  3   LPCTSTR lpWindowName,  4   DWORD dwStyle,  5   int x,  6   int y,  7   int nWidth,  8   int nHeight,  9   HWND hWndParent, 10   HMENU hMenu, 11   HANDLE hInstance, 12   PVOID lpParam 13 ); 
View Code

 

3. MessageBox

http://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx

1 int WINAPI MessageBox(2   _In_opt_  HWND hWnd,3   _In_opt_  LPCTSTR lpText,4   _In_opt_  LPCTSTR lpCaption,5   _In_      UINT uType6 );
View Code

 

4. TextOut

http://msdn.microsoft.com/en-us/library/windows/desktop/dd145133(v=vs.85).aspx

1 BOOL TextOut(2   _In_  HDC hdc,3   _In_  int nXStart,4   _In_  int nYStart,5   _In_  LPCTSTR lpString,6   _In_  int cchString7 );
View Code

 

MFC: functions