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 uType
6 );
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 cchString
7 );
View Code

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。