VB lineto ¡¢ MoveToEx ¡¢ ×ÀÃæ»Ïß¡£ - VB / API
ÎÒÏëʵÏÖÔÚ×ÀÃæ»Á½ÌõÏߺáÊúÁ½Ìõ¡£
ΪʲôÎÒÓÃlineto »³öÀ´µÄÆðʼµãÊÇ0£¬0 ¡££¿
Äܲ»ÄÜ×Ô¼ºÉèÖᣣ¿
Èç¹ûÊÇ»µÄÐéÏ߾͸üºÃÁË¡£
Èç¹ûÄÜÔÙÉèÖÃÏÂ͸Ã÷¶È¡£¡£¡£¡£¡£
ҪʵÏÖµÄЧ¹û¡£
ÔÚÆÁÄ»ÖÐÑ뻳öÒ»¸öÊ®×ÖµÄͼ°¸³öÀ´¡£
²»¹ÜÊÇʲôAPI ¡£
Ö»ÒªÄÜʵÏÖÕâ¸öЧ¹û¾Í³É¡£
ÓÃMoveToExÒÆ»±ÊλÖÃ
The MoveToEx function updates the current position to the specified point and optionally returns the previous position.
BOOL MoveToEx(
HDC hdc, // handle to device context
int X, // x-coordinate of new current position
int Y, // y-coordinate of new current position
LPPOINT lpPoint // pointer to old current position
);
×Ô¼º±êÌâÉϲ»ÊÇдÁËmovetoexô, ÄѵÀûÓÃ?
GDI+
ÎÒÓÃÁËmovetoex¡£
²»¹ý»¹ÊÇÔÚ0£¬0ÄÇÀ↑ʼ»°¡¡£
ºÎ²»Ìù´úÂëÄØ£¬ÕâÖÖÇé¿ö£¬ËÖªµÀÄã´úÂëÔõôдµÄ°¡£º£©
VB code:
Option Explicit
Private Declare Function LineTo Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Private Declare Function MoveToEx Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, lpPoint As Long) As Long
Private Declare Function GetDC Lib "user32" (ByVal hwnd As
Ïà¹ØÎÊ´ð£º
ÎÒÔÚÀàÖÐÓÐÒ»¸öº¯Êý
Public Function DownloadAdditionalSite(SiteName As siteconfig, Directory As String, ymd As String) As Boolean
siteconfigÊÇÎÒ×Ô¶¨ÒåÀàÐ͵ÄÊý¾Ý£¬ÎªÊ²Ã´»áÌáʾ¡°Ö»ÓÐÔÚ¹«¹²¶ÔÏóÄ£¿éÖж ......
Ôõô°ÑÒÑÖªµÄÊý¾Ý±£´æ³ÉxmlÎļþ£¬ÏÖÔÚÒÑÖªµÄÊý¾ÝÊÇ
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o=& ......
¸÷λ¸ßÊÖ£¬Ð¡µÜ×î½üÅöµ½Ò»¸öÎÊÌ⣺ÔÏÈдµÄ³ÌÐò´ó¸ÅµÄ˼·ÊÇ£ºÊ×ÏÈwebbrowser´ò¿ªÍøÖ·£¬ÍøÖ·ÏÔʾºó£¬µã»÷ÍøÖ·ÉϵÄijһ¸öÁ¬½Ó£¬µ±webbrowser¼ì²âµ½ÍøÖ·ÒѾÁ¬½Óµ½ÏëÒªµÄµØַʱºò¾Í¿ªÊ¼ÏÂÔØÎļþ£¬µ±ÓÃIE6µÄʱºòÏÂÔ ......
ͦ·±Ëö£¬Ö®Ç°·¢µÄÌû×Ó£¬·Öֵ̫µÍÏÖÔÚÖØ·¢Ò»¸ö¡£»¶Ó¸÷λ´óÏÀ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......
ϵͳÔÚ¶ą̀µçÄÔÉÏÔËÐУ¬¾ÍÔÚÆäÖÐһ̨µçÄÔÉϲúÉú¡±ÄÚ´æÒç³ö¡°¡£
ÿ̨µçÄÔ²Ù×÷ϵͳ ÅäÖö¼Ò»ÑùµÄ¡£¡£ÇëÎÊÊÇʲôÔÒò£¿
(1)ÓÃÁËÉè¼Æ²»ÍêÉƵĿؼþ£¬¿Ø¼þ±¾ÉíÓÐÎÊÌ⣬»òÕß²»Ç¡µ±µØʹÓÃÁËapiº¯Êý¡£
(2)ÎÞÏÞµÄ ......