Dynamic Created CEdit using CreateEx
-
I used the below code for creating CEdit dynamically, code compiled but editbox is not visible on screen [CODE] CEdit *tedit = new CEdit: tedit->CreateEx(WS_EX_CLIENTEDGE , L"Edit", L" ", ES_AUTOHSCROLL | ES_LEFT | WS_BORDER | WS_VISIBLE | WS_CHILD ,this,IDC_EDIT); [/CODE]
-
I used the below code for creating CEdit dynamically, code compiled but editbox is not visible on screen [CODE] CEdit *tedit = new CEdit: tedit->CreateEx(WS_EX_CLIENTEDGE , L"Edit", L" ", ES_AUTOHSCROLL | ES_LEFT | WS_BORDER | WS_VISIBLE | WS_CHILD ,this,IDC_EDIT); [/CODE]
-
I used the below code for creating CEdit dynamically, code compiled but editbox is not visible on screen [CODE] CEdit *tedit = new CEdit: tedit->CreateEx(WS_EX_CLIENTEDGE , L"Edit", L" ", ES_AUTOHSCROLL | ES_LEFT | WS_BORDER | WS_VISIBLE | WS_CHILD ,this,IDC_EDIT); [/CODE]
Does it compile? It looks like the parameter CRect is missing. Other info you could find here: [How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog](http://forums.codeguru.com/showthread.php?564861-How-to-do-flat-style-of-CEdit-(EDITTEXT)-and-CComboBox-in-CDialog&p=2236489#post2236489)