Click here to Skip to main content
15,890,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Grid to List box Pin
Hamid_RT12-Nov-08 20:45
Hamid_RT12-Nov-08 20:45 
AnswerRe: Grid to List box Pin
Hamid_RT12-Nov-08 19:15
Hamid_RT12-Nov-08 19:15 
GeneralRe: Grid to List box Pin
Pryabu12-Nov-08 20:13
Pryabu12-Nov-08 20:13 
AnswerRe: Grid to List box Pin
SandipG 12-Nov-08 21:45
SandipG 12-Nov-08 21:45 
Questionrewrite programs without gotos and breaks Pin
phokojoe12-Nov-08 17:17
phokojoe12-Nov-08 17:17 
AnswerRe: rewrite programs without gotos and breaks Pin
Sarath C12-Nov-08 17:46
Sarath C12-Nov-08 17:46 
AnswerRe: rewrite programs without gotos and breaks Pin
Subrat 470826612-Nov-08 20:32
Subrat 470826612-Nov-08 20:32 
QuestionCEdit::CreateEx [modified] Pin
Mark Gilson12-Nov-08 6:48
Mark Gilson12-Nov-08 6:48 
I am trying to create 512 CEdit boxes with a "3D" look to them. I know I need to use CreateEx with the style WS_EX_CLIENTEDGE. My Code is below (I have this code in OnInitDialog):

CEdit *EditArray[512];

for(i=0;i<512;i++)
{
	EditArray[i] = new CEdit;
        EditArray[i]->CreateEx(WS_EX_CLIENTEDGE, _T(controlname), _T(""), WS_CHILD | WS_VISIBLE, CRect(topleft,bottomright), this, i+1500);
}


This code compiles and runs without a hitch...except that the textboxes are never visible. If I switch to a simple CEdit::Create it works and all the textboxes display. Please note that I have code in addition to the above which displays the textboxes in different locations (topleft & bottomright are changed for each textbox). Does anyone have any suggestions as to why I am unable to view these textboxes?

modified on Wednesday, November 12, 2008 2:16 PM

AnswerRe: CEdit::CreateEx Pin
David Crow12-Nov-08 7:53
David Crow12-Nov-08 7:53 
GeneralRe: CEdit::CreateEx Pin
Mark Gilson12-Nov-08 8:18
Mark Gilson12-Nov-08 8:18 
GeneralRe: CEdit::CreateEx Pin
Mark Gilson12-Nov-08 8:20
Mark Gilson12-Nov-08 8:20 
JokeRe: CEdit::CreateEx Pin
Roger Stoltz12-Nov-08 8:24
Roger Stoltz12-Nov-08 8:24 
GeneralRe: CEdit::CreateEx Pin
Mark Gilson12-Nov-08 8:29
Mark Gilson12-Nov-08 8:29 
AnswerRe: CEdit::CreateEx Pin
Roger Stoltz12-Nov-08 8:52
Roger Stoltz12-Nov-08 8:52 
GeneralRe: CEdit::CreateEx Pin
Mark Gilson12-Nov-08 9:21
Mark Gilson12-Nov-08 9:21 
QuestionRe: CEdit::CreateEx Pin
Mark Salsbery12-Nov-08 9:34
Mark Salsbery12-Nov-08 9:34 
AnswerRe: CEdit::CreateEx Pin
Mark Gilson12-Nov-08 9:46
Mark Gilson12-Nov-08 9:46 
GeneralRe: CEdit::CreateEx Pin
Mark Gilson12-Nov-08 9:51
Mark Gilson12-Nov-08 9:51 
GeneralRe: CEdit::CreateEx Pin
Mark Salsbery12-Nov-08 9:57
Mark Salsbery12-Nov-08 9:57 
GeneralRe: CEdit::CreateEx Pin
David Crow12-Nov-08 10:19
David Crow12-Nov-08 10:19 
GeneralRe: CEdit::CreateEx Pin
Roger Stoltz12-Nov-08 10:47
Roger Stoltz12-Nov-08 10:47 
QuestionRe: CEdit::CreateEx Pin
David Crow12-Nov-08 10:22
David Crow12-Nov-08 10:22 
AnswerRe: CEdit::CreateEx Pin
Roger Stoltz12-Nov-08 8:18
Roger Stoltz12-Nov-08 8:18 
QuestionMFC ::Serialize problem! [modified] Pin
sabdalla8012-Nov-08 6:14
sabdalla8012-Nov-08 6:14 
AnswerRe: MFC Serialize Version problem! Pin
Roger Stoltz12-Nov-08 6:51
Roger Stoltz12-Nov-08 6:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.