|
API 함수 사용법 이라기보다는 builder의 팁에 가깝겠군요..
BOOL DrawEdge(
HDC hdc, // handle to device context
LPRECT qrc, // pointer to rectangle coordinates
UINT edge, // type of inner and outer edge to draw
UINT grfFlags // type of border
);
위에 보시다시피 hdc 를 넘겨줘야하는데요.
hdc 를 얻을려면 보통 GetDC 쓰기는 쓰지요.
근데 SpeedButton은 Handle이 없으니까... GetDC를 못쓰고
TControlCanvas*c=new TControlCanvas();
c->Control = SpeedButton1;
DrawEdge(c->Handle, &R , EDGE_SUNKEN, BF_RECT );
delete c;
바보 님이 쓰신 글 :
: VB 에서는 그냥 잘되던데 C++ 빌더에는 안되는 군요..
:
: 그 냥 에러가 나오던데.. 아시분 있나요...
:
:
:
: TRect *R ;
:
: DrawEdge (SpeedButton1, R , EDGE_SUNKEN, BF_RECT );
|