Can DDX_Text be used with CTEXT resource item
-
The Documentation says DDX_Text is for a edit control and I am getting an assertation So maybe I have to use GetDlgItem and SetWindowText to set the text of the CTEXT Thankx
-
The Documentation says DDX_Text is for a edit control and I am getting an assertation So maybe I have to use GetDlgItem and SetWindowText to set the text of the CTEXT Thankx
ForNow wrote:
The Documentation says DDX_Text is for a edit control and I am getting an assertation So maybe I have to use GetDlgItem and SetWindowText to set the text of the CTEXT
You can use DDX_Text for static controls. Another way is to create the control member variable (using DDX_CONTROL) and then use this variable to call SetWindowText. Where and how do you call the DDX_Text from? Perhaps you call it before the base class OnInitDialog was called?
-
ForNow wrote:
The Documentation says DDX_Text is for a edit control and I am getting an assertation So maybe I have to use GetDlgItem and SetWindowText to set the text of the CTEXT
You can use DDX_Text for static controls. Another way is to create the control member variable (using DDX_CONTROL) and then use this variable to call SetWindowText. Where and how do you call the DDX_Text from? Perhaps you call it before the base class OnInitDialog was called?