<script language='javascript' src='http://www.shiqiaotou.com/donetk/Header.js'></script> 对AutoCAD二次开发方向的发展,是我为从事.net前就有的愿望,现在.net + ObjectARX 已经形成很完美的结合,遗憾的是目前国内关于.net对 ObjectARX 开发的资料太少。我会将自己的学习经验不断的与大家分享,希望关注。
WinAPI的引用:
WinAPI的引用:
public
class
WinAPI
{
#region 宏定义
public const int WM_SETICON = 0x80 ;
public const int IMAGW_ICON = 1 ;
public const int LR_LOADFROMFILE = 0x10 ;
#endregion
#region WinAPI定义
[DllImport( " User32.dll " , EntryPoint = " SendMessage " )]
public static extern int SendMessage(
int hWnd, // handle to destination window
int Msg, // message
int wParam, // first message parameter
int lParam // second message parameter
);
[DllImport( " user32 " , EntryPoint = " LoadImage " )]
public static extern int LoadImageA( int hInst, string lpsz, int un1, int n1, int n2, int un2);
[DllImport( " user32 " , EntryPoint = " SetWindowText " )]
public static extern int SetWindowTextA( int hwnd, string lpString);
#endregion
}
文章来源于 http://www.cnblogs.com/wf225 版权归原作者所有<script language='javascript' src='http://www.shiqiaotou.com/donetk/Footer.js'></script>
{
#region 宏定义
public const int WM_SETICON = 0x80 ;
public const int IMAGW_ICON = 1 ;
public const int LR_LOADFROMFILE = 0x10 ;
#endregion
#region WinAPI定义
[DllImport( " User32.dll " , EntryPoint = " SendMessage " )]
public static extern int SendMessage(
int hWnd, // handle to destination window
int Msg, // message
int wParam, // first message parameter
int lParam // second message parameter
);
[DllImport( " user32 " , EntryPoint = " LoadImage " )]
public static extern int LoadImageA( int hInst, string lpsz, int un1, int n1, int n2, int un2);
[DllImport( " user32 " , EntryPoint = " SetWindowText " )]
public static extern int SetWindowTextA( int hwnd, string lpString);
#endregion
}
文章来源于 http://www.cnblogs.com/wf225 版权归原作者所有<script language='javascript' src='http://www.shiqiaotou.com/donetk/Footer.js'></script>