截图示例 API Public Declare Function CreateCompatibleDC Lib "GDI32" (ByVal hDC As Integer) As Integer Public Declare Function CreateCompatibleBitmap Lib "GDI32" (ByVal hDC As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer) As I nteger Public
#include #include #include #include using namespace std; class CMap { public: CMap(); int GetMapWidth() const ; int GetMapHeight() const; public: int m_mapWith; int m_mapHeiht; int m_map[25][25]; }; CMap::CMap():m_mapWith(25), m_mapHeiht(25) { f
Private Sub ExtractIconComposite(inPic As PictureBox) On Error Resume Next Dim ipic As IPicture Dim icoinfo As ICONINFO Dim pDesc As pictDesc Dim hDCWork Dim hBMOldWork Dim hNewBM Dim hBMOldMono GetIconInfo inPic.Picture, icoinfo hDCWork = CreateCom