delphi´úÂë±ä³ÉbcbºóÌ«ÉÁ - C++ Builder / »ù´¡Àà
delphi´úÂë±ä³ÉbcbºóÌ«ÉÁ,¶¼ÊÇÔÚ FormPaint ·½·¨ÖÐ
delphi´úÂë:::
var
i: integer;
rgn: HRGN;
r: TRect;
begin
with Canvas do begin
//ÀûÓÃimgTitleBarBG»æÖƱêÌâ±³¾°
for i:=0 to ClientWidth div imgTitleBarBG.Width do
Draw(i*imgTitleBarBG.Width, 0, imgTitleBarBG.Picture.Bitmap);
if Tag<>0 then Exit; //Èç¹û´°ÌåÕýÔÚµ¯³ö״̬£¬²»»æÖÆÄÚÈÝÃæ°å±³¾°
// »æÖÆÄÚÈÝÃæ°å±³¾°
SetRect(r, 5, 15, Width-5, Height-5);
StretchDraw(r, imgShapeBG.Picture.Bitmap);
Pen.Color := $C97F55;
Brush.Style := bsClear;
RoundRect(r.Left, r.Top, r.Right, r.Bottom, 6, 6);
//»æÖÆ´°Ìå±ß¿ò
rgn := CreateRectRgn(0,0,0,0);
GetWindowRgn(Self.Handle, rgn);
Brush.Color := $BE796B;
windows.FrameRgn(Handle, rgn, Brush.Handle, 2, 2);
DeleteObject(rgn);
end;
end;
ת³ÉbcbºóµÄ´úÂë:::
Application-> ProcessMessages(); //¼ÓÕâ¾ä
//ÀûÓÃimgTitleBarBG»æÖƱêÌâ±³¾°
for ( int i=0 ; i < (ClientWidth / imgTitleBarBG->Width) ; i++ )
{
Canvas->Draw(i * imgTitleBarBG->Width , 0 , imgTitleBarBG->Picture->Bitmap);
if (Tag!=0)
break; //Èç¹û´°Ì
Ïà¹ØÎÊ´ð£º
ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ
ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆ̨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆ̨£ ......
Ï£Íû¸ø´ó¼ÒÌṩһЩеÄ˼·.
ÎÒÃÇÔÚʹÓÃC±à³Ìʱ»áÓöµ½Ò»¸öÎÊÌ⣬±ÈÈçÍ·ÎļþµÄÒ»¸öº¯Êý°üº¬ÔÚÒ»¸ölib ÖУ¬µ«ÊÇ
ÔÚʵ¼ÊÁ¬½ÓÖÐÎÒÃDz»ÖªµÀËüÔÚÄĸö¿âÖС£Ò²Ðí¿ÉÐеÄÒ»ÖÖ°ì·¨ÊÇÖ±½ÓÉÏÍø²éѯij¸ö
º¯ÊýµÄÒÀÀµÌõ¼þ£¬Õâ¶Ô ......
ÎÒˮƽºÜ²Ë£¬ÌáÎʵĹÀ¼ÆÒ²ºÜ¸ãЦ£¬ºÇºÇ£¬¸ßÊÖ¼ûÁ¡£
ÎÒÔÚ´úÂëÀïÃæÌí¼ÓÁËÒ»¸ö.cÎļþA£¬ÀïÃæÓÐÒ»¸öº¯Êýf£¬È»ºóÎÒÔÚÁíÍâÒ»¸ö.cÎļþBÖе÷Óô˺¯Êýf£¬µ«ÊÇ£¬BÎļþÖв¢Ã»Óаüº¬¶Ôº¯ÊýfµÄÉùÃ÷£¬Ò²¾ÍÊÇ˵ûÓаüº¬ÎļþAµÄ.h£ ......
ÒªÇóºÜ¼òµ¥£¬¶®DELPHI+MSSQL¾Í¿ÉÒÔ¡£¡£
û¾ÑéÒªÇ󡣡£¹¤×Ê2K~2.5K£¬²»°ü³Ôס£¬
ÔÚÍâµÄÈËÉ÷ÖØ¿¼ÂÇ£¬¿ÉÂòÉç±££¬
Èç¹ûÏëÕÒ̤½Å°åµÄÇëÒ»±ßÈ¥£¬
¿ÉÒÔ³ÐŵÈç¹ûÄܸÉÊ£¬¹«Ë¾Òµ¼¨²»´íµÄʱºò¹¤×Ê·½ÃæÒ»¶¨»áÓÐÌáÉý£¬
ÎÒ² ......