如何通过图片实现窗体拖动

 onMouseMove中:

 Bland C++ Builder 6:

 

void __fastcall TForm1::Image1MouseMove(TObject *Sender, TShiftState Shift,
      int X, int Y)
{

    {
        ReleaseCapture();
        Perform(WM_NCLBUTTONDOWN, HTCAPTION, 0);
    }
}

你可能感兴趣的:(c,image)