How to Move an MFC Button. [modified]
-
You already have the very good hint from Niklas Lindquist 14Jul'10. SetWindowPos()[^] or MoveWindow()[^] to move the buttons Every Button is based on a Window and SetWindowPos() can do everything with the button (even hide it) if you are able to get the CWnd-handle. See Example:
void CWinApp::HideApplication()
On the MSDN Online-Page (linked also by Niklas Lindquist) you really should start to read MFC doku (See advice of Cedric Moonen). You can get hints from the Forum, but nobody will do the complete work for you. What is the complete Funktion of your Application ? -If you want networkfunktions you will probably get Timing an Sync Problems. You can send every Button a message to get the same result as if you pressed it, but over Network you will not see the monitor. You have to find a way to send the results back to every client and display it.yup., one of my nerd friends is helping on the networking side of the app.. needs to read about Socket Buffer and Listening.. anyways., got a lot of hints from you guys on how to start my C++ adventure, hope it works for me., am trying to change my programming path from VB to C++., i wish myself good luck. Thank you again.
-
You should really buy a book about VC++. It is nearly impossible to help someone who has almost no knowledge of VC++ or C++ through a forum. It will take ages to explain some basic concepts. You will be much more efficient by reading a book first.
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++who the f*** voted you down here! let me even it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You