Visual Studio 2008 Express Edition ¤Ç¥È¥é¥ó¥×¥²¡¼¥à¤òºî¤í¤¦
1ÆüÌܤγؽ¬
¢¼«Æ°ÇÉÀ¸¤·¤¿Paint¤Ë¤Ä¤®¤ÎÀÖ¤¤Éôʬ¤òÆþÎϤ·¤è¤¦
#pragma endregion
private: System::Void Form1_Paint(System::Object^ sender, System::Windows::Forms::PaintEventArgs^ e) {
Graphics^ gr=e->Graphics;
}
£¼¡¤Ë¤è¤¯»È¤¦¥µ¥Ö¥ë¡¼¥Á¥ó¤ò¥»¥Ã¥È¤¹¤ë¡¡¤³¤³¤Ç¤Ï¥È¥é¥ó¥×ɽ¼¨¤ò¤Ä¤¯¤ë
¥¹¥é¥¤¥É¥Ð¡¼¤ò¾å¤²¤Æ¼¡¤Îʸ¤òõ¤¹
/// ɬÍפʥǥ¶¥¤¥ÊÊÑ¿ô¤Ç¤¹¡£
¤¼¡¤ÎÀÖ»ú¤Î¹Ô¤òÁÞÆþ¤¹¤ë
/// ɬÍפʥǥ¶¥¤¥ÊÊÑ¿ô¤Ç¤¹¡£
/// </summary>
System::ComponentModel::Container ^components;
void DispHai( int nohai,int xx){
Graphics^ gr=this->CreateGraphics();
int X0=10,Y0=1;
String^ filename;
filename="c:\\card\\1_sp.gif";
Bitmap^ bmap1; //bmap¤Î³ÎÊÝ
bmap1=gcnew Bitmap(filename);
gr->DrawImage(bmap1,X0,Y0);
}
¤Form1¥Ç¥¶¥¤¥ó¢ª¡¡¥È¥ó¥«¥Á¥Ü¥¿¥ó¢ª¡¡¥³¥â¥ó¥³¥ó¥È¥í¡¼¥ë¢ª¡¡button¢ª¡¡¤Ç¥Õ¥©¡¼¥à¾å¤Ë¥Ü¥¿¥ó¤òºî¤ë
button¤ò¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤¹¤ë¡¡ÀÖ¤ÎÉôʬ¤òÄɲÃ
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
DispHai( 0,1);
}
¤ò²¡¤·¤Æ¼Â¹Ô¤·¤Æ¤ß¤ë
·ë²Ì
¤³¤ì¤¬É½¼¨¤µ¤ì¤ì¤ÐÀ®¸ù¤Ç¤¹
¸«ËÜ toranpu1.exe toranpu1.zip