Jump to content

drag window

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
acce55

acce55

    Newbie

  • Members
  • Pip
  • 5 posts
Does anyone have the code to drag a window because i have no Title Bar...


im programming visual c++ MFC framework.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
How do you want dragging the window to work?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
acce55

acce55

    Newbie

  • Members
  • Pip
  • 5 posts
when you click and hold in the client area, it will drag

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Not knowing MFC: I would think there is a mouse_down event and a mouse_drag event you can use for the client area. Then adjust the left/top coordinates accordingly.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,715 posts
Just curious...why are you using MFC? Here's a link I found with a problem exactly like yours, and a solution.

Move a Window in MFC

Edited by dargueta, 02 August 2009 - 01:06 PM.
Typo

sudo rm -rf /