|
안녕하세요
MSDN에 나온 예제를 빌더에 맞게 약간 수정했습니다..
그럼 즐프 하세요..
void CALLBACK LineProc(int x, int y, LPARAM lpData)
{
static short nTemp = 0;
if (nTemp++ % 2)
SetPixel((HDC)lpData, x, y, 0L);
}
void __fastcall TForm1::FormPaint(TObject *Sender)
{
HDC hDC = Canvas->Handle;
for (int nIndex = 0; nIndex < 50; nIndex++)
LineDDA(rand() / 110, rand() / 110, rand() / 110, rand() / 110,
(LINEDDAPROC)LineProc, (LPARAM)hDC);
}
미혜 님이 쓰신 글 :
: BOOL LineDDA(
:
: int nXStart, // x-coordinate of line's starting point
: int nYStart, // y-coordinate of line's starting point
: int nXEnd, // x-coordinate of line's ending point
: int nYEnd, // y-coordinate of line's ending point
: LINEDDAPROC lpLineFunc, // address of application-defined callback function
: LPARAM lpData // address of application-defined data
: );
:
: 도움말에는 이케 나왔는데요..
: 어케 써야 할지 모르겠어요... (__);;;
: 쉬운 예제라도 하나만,,,,
:
: 고수님들 부탁드려요..
|