From: cool friend on 8 Jan 2010 05:45 I am working with visual c++ and i want my bitmap buttons to move or change their position three times when i click only one button one time.But i donot know how to do this???Is there any coding in mfc??can anyone send me the coding???
From: ScottMcP [MVP] on 8 Jan 2010 09:53 On Jan 8, 5:45 am, cool friend <coolfriend9...(a)yahoo.com> wrote: > I am working with visual c++ and i want my bitmap buttons to move or > change their position three times when i click only one button one > time.But i donot know how to do this???Is there any coding in mfc??can > anyone send me the coding??? A button is a window. It will move if you call the button's MoveWindow. To do it 3 times you need a delay between calls to MoveWindow, and you need to let message processing continue between calls. To start the sequence use a timer that you start with SetTimer. In the WM_TIMER message handler call button's MoveWindow. The 3rd time this happens also call KillTimer.
From: cool friend on 8 Jan 2010 22:32 On Jan 8, 7:53 pm, "ScottMcP [MVP]" <scott...(a)mvps.org> wrote: > On Jan 8, 5:45 am, cool friend <coolfriend9...(a)yahoo.com> wrote: > > > I am working with visual c++ and i want my bitmap buttons to move or > > change their position three times when i click only one button one > > time.But i donot know how to do this???Is there any coding in mfc??can > > anyone send me the coding??? > > A button is a window. It will move if you call the button's > MoveWindow. To do it 3 times you need a delay between calls to > MoveWindow, and you need to let message processing continue between > calls. > > To start the sequence use a timer that you start with SetTimer. In > the WM_TIMER message handler call button's MoveWindow. The 3rd time > this happens also call KillTimer. I donot know how to call the buttons MoveWindow.How to insert delay??? can you send me the code please???I have no idea how to do this???
From: ScottMcP [MVP] on 9 Jan 2010 00:15 On Jan 8, 10:32 pm, cool friend <coolfriend9...(a)yahoo.com> wrote: > I donot know how to call the buttons MoveWindow.How to insert delay??? > can you send me the code please???I have no idea how to do this??? Good grief, that's pitiful. Why should anyone send you the code? You need to study a book and/or study example programs.
|
Pages: 1 Prev: C++ Customize Context Menus Next: How to use Managed DLL in Unmanaged DLL and vice versa... |