controls visible or not at runtime
-
Hi all, Is there a way to make a control visible/invisible at runtime ? Moreover: may i change the position af a control at runtime ? Thanx in advance, Desmo16.
-
Hi all, Is there a way to make a control visible/invisible at runtime ? Moreover: may i change the position af a control at runtime ? Thanx in advance, Desmo16.
GetDlgItem(IDC_MY_CONTROL)->ShowWindow(SW_HIDE); GetDlgItem(IDC_MY_CONTROL)->ShowWindow(SW_SHOW);
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
Hi all, Is there a way to make a control visible/invisible at runtime ? Moreover: may i change the position af a control at runtime ? Thanx in advance, Desmo16.
Yes you can change the position of a control at runtime. See MoveWindow()
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
GetDlgItem(IDC_MY_CONTROL)->ShowWindow(SW_HIDE); GetDlgItem(IDC_MY_CONTROL)->ShowWindow(SW_SHOW);
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
also to move controls
BOOL MoveWindow( int x, int y,int nWidth, int nHeight, BOOL bRepaint = TRUE )
orSetWindowPos ( const CWnd* pWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags );
:)Dream bigger... Do bigger...Expect smaller aji
say this to the OP... i didn't ask the question.
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
say this to the OP... i didn't ask the question.
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
Whats in my mind is, he can also see the answer from here naaa???:-D I just want to add my point with your answer.:rolleyes:
Dream bigger... Do bigger...Expect smaller aji
-
Hi all, Is there a way to make a control visible/invisible at runtime ? Moreover: may i change the position af a control at runtime ? Thanx in advance, Desmo16.
See
MoveWindow(...)//position ShowWindow(SW_SHOW or SW_HIDE) for visible or not
_**
**_
WhiteSky