📄 subject_60764.htm
字号:
<p>
序号:60764 发表者:非典 发表日期:2003-11-15 11:57:49
<br>主题:syntax error
<br>内容:有知道的说一声,谢谢<BR>LRESULT CALLBACk WndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam)<BR>{<BR> static HICON hIcon;<BR>static int cxICon,cyIcon,cxClient,cyClient;<BR>HDC hdc;<BR>HINSTANCE hInstance;<BR>PAINTSTRUCT ps;<BR>int x,xy;<BR>switch(message)<BR> {<BR>case WM_CREATE:<BR> hInstance=((LPCREATESTRUCT)lParam)->hInstance;<BR> hIcon=LoadIcon(hInstance,MAKEINTRESOURCE(IDI_ICON));<BR> cxICon=GetSystemMetrics(SM_CXICON);<BR> cyIcon=GetSystemMetrics(SM_CYICON);<BR> return 0;<BR><BR><BR>case WM_SIZE:<BR> cxClient=LOWORD(lParam);<BR> cyClient=HIWORD(lParam);<BR> return 0;<BR><BR><BR>case WM_PAINT:<BR> hdc=BeginPaint(hwnd ,&ps);<BR> for(y=0;y<cyClient;y+=cyIcon)<BR> for(x=0;x<cxClient;x+=cxICon)<BR> DrawIcon (hdc,x,y,hIcon);<BR> EndPaint(hwnd ,&ps);<BR> return 0;<BR><BR> <BR> <BR>case WM_DESTROY:<BR> PostQuitMessage(0);<BR> return 0;<BR>} <BR>return DefWindowProc(hwnd,message,wParam,lParam);<BR>}<BR><BR>G:\SAVE\MY EBOOKS\icondeom\icondeom.cpp(48) : error C2146: syntax error : missing ';' before identifier 'WndProc'<BR>
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:Alinx 回复日期:2003-11-15 12:24:57
<br>内容:CALLBACk ?CALLBACK
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:CDMA2000 回复日期:2003-11-15 13:01:04
<br>内容:CALLBACk不对吧,应该是CALLBACK阿
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:非典 回复日期:2003-11-15 13:22:25
<br>内容:谢谢二位,不过 分只能给一个人
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -