EnableOLEDragMethod (Main Control) example for C++ Builder
void __fastcall TForm1::btnStartDragClick(TObject *Sender)
{
LEADImage2->Load("v:\\images\\image1.cmp", 0, 1, 1 );
LEADImage1->EnableOLEDragMethod = true;
LEADImage2->EnableOLEDragMethod = true;
LEADImage1->OLEDragCursor = (L_HCURSOR)(this->Icon->Handle) ;
LEADImage2->OLEDragCursor = (L_HCURSOR)(this->Icon->Handle) ;
}
void __fastcall TForm1::btnStopDragClick(TObject *Sender)
{
LEADImage1->EnableOLEDragMethod = false;
LEADImage2->EnableOLEDragMethod= false;
}
void __fastcall TForm1::LEADImage1OLEGiveFeedback(bool &bUseDefaultCursor)
{
bUseDefaultCursor = false;
}
void __fastcall TForm1::LEADImage2OLEGiveFeedback(bool &bUseDefaultCursor)
{
bUseDefaultCursor = false;
}