Changing position of a CButton
-
Hello All, I have a MFC app in VS 6.0 in which am trying to move the postion of a button during the run time. I am calling function SetWindowPos and for some reason it's not working. I tried MoveWindow and that too didn't work. The same code runs on a different dialog with a different (ID) button. But for some reason the SetWindowPos & MoveWindow functions are not working in this particular dialog. Is there any reason for that? like, all controls are locked or something.... How to resolve this issue? Thanks in advance.
-
Hello All, I have a MFC app in VS 6.0 in which am trying to move the postion of a button during the run time. I am calling function SetWindowPos and for some reason it's not working. I tried MoveWindow and that too didn't work. The same code runs on a different dialog with a different (ID) button. But for some reason the SetWindowPos & MoveWindow functions are not working in this particular dialog. Is there any reason for that? like, all controls are locked or something.... How to resolve this issue? Thanks in advance.
-
Hello All, I have a MFC app in VS 6.0 in which am trying to move the postion of a button during the run time. I am calling function SetWindowPos and for some reason it's not working. I tried MoveWindow and that too didn't work. The same code runs on a different dialog with a different (ID) button. But for some reason the SetWindowPos & MoveWindow functions are not working in this particular dialog. Is there any reason for that? like, all controls are locked or something.... How to resolve this issue? Thanks in advance.
Controls cannot be locked. The reason for it not working is definitely something wrong with the code. So as Richard said, we need to see it.
«_Superman_» _I love work. It gives me something to do between weekends.
-
Hello All, I have a MFC app in VS 6.0 in which am trying to move the postion of a button during the run time. I am calling function SetWindowPos and for some reason it's not working. I tried MoveWindow and that too didn't work. The same code runs on a different dialog with a different (ID) button. But for some reason the SetWindowPos & MoveWindow functions are not working in this particular dialog. Is there any reason for that? like, all controls are locked or something.... How to resolve this issue? Thanks in advance.
Donguy1976 wrote:
all controls are locked or something....
Controls can't be locked. Show use the code...
cheers Marco Bertschi
Software Developer Twitter | Facebook | Articles
You have absolutely no idea how glad I am that I have no idea at all. - OriginalGriff