一个类,创建后,数据成员值不知如何获得 ( 积分: 50 )

  • 主题发起人 主题发起人 chinaandys
  • 开始时间 开始时间
C

chinaandys

Unregistered / Unconfirmed
GUEST, unregistred user!
<br>各位,帮一帮,谢谢<br>tagWNDCLASSA = packed record<br> &nbsp; &nbsp;style: UINT;<br> &nbsp; &nbsp;lpfnWndProc: TFNWndProc;<br> &nbsp; &nbsp;cbClsExtra: Integer;<br> &nbsp; &nbsp;cbWndExtra: Integer;<br> &nbsp; &nbsp;hInstance: HINST;<br> &nbsp; &nbsp;hIcon: HICON;<br> &nbsp; &nbsp;hCursor: HCURSOR;<br> &nbsp; &nbsp;hbrBackground: HBRUSH; &nbsp; //这一句,如果我创建了一个实例,就是知道如何得到HBRUSH类的值<br> &nbsp; &nbsp;lpszMenuName: PAnsiChar;<br> &nbsp; &nbsp;lpszClassName: PAnsiChar;<br> &nbsp;end;<br>
 
<br>各位,帮一帮,谢谢<br>tagWNDCLASSA = packed record<br> &nbsp; &nbsp;style: UINT;<br> &nbsp; &nbsp;lpfnWndProc: TFNWndProc;<br> &nbsp; &nbsp;cbClsExtra: Integer;<br> &nbsp; &nbsp;cbWndExtra: Integer;<br> &nbsp; &nbsp;hInstance: HINST;<br> &nbsp; &nbsp;hIcon: HICON;<br> &nbsp; &nbsp;hCursor: HCURSOR;<br> &nbsp; &nbsp;hbrBackground: HBRUSH; &nbsp; //这一句,如果我创建了一个实例,就是知道如何得到HBRUSH类的值<br> &nbsp; &nbsp;lpszMenuName: PAnsiChar;<br> &nbsp; &nbsp;lpszClassName: PAnsiChar;<br> &nbsp;end;<br>
 
HBRUSH tmp1;<br>tmp1:=myWNDCLASSA.hbrBackground;
 
后退
顶部