Click here to Skip to main content
15,920,031 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HTTP code in c++ Pin
Christian Graus19-Sep-06 21:19
protectorChristian Graus19-Sep-06 21:19 
GeneralRe: HTTP code in c++ Pin
raghup1319-Sep-06 21:22
raghup1319-Sep-06 21:22 
GeneralRe: HTTP code in c++ Pin
Christian Graus19-Sep-06 21:29
protectorChristian Graus19-Sep-06 21:29 
Questiondisplaying arabic characters in excel Pin
pac2819-Sep-06 20:11
pac2819-Sep-06 20:11 
AnswerRe: displaying arabic characters in excel Pin
Hamid_RT19-Sep-06 20:29
Hamid_RT19-Sep-06 20:29 
Questionparent doesn't let the child to be visible in mfc Pin
sepehr_vision19-Sep-06 20:11
sepehr_vision19-Sep-06 20:11 
AnswerRe: parent doesn't let the child to be visible in mfc Pin
Naveen19-Sep-06 20:30
Naveen19-Sep-06 20:30 
GeneralRe: parent doesn't let the child to be visible in mfc Pin
sepehr_vision19-Sep-06 20:39
sepehr_vision19-Sep-06 20:39 
hi.
thanks for caring.
i did put the code yesterday.
but they said remove the code!
that is also available from yesterday.

void ECMLMItem::Create(int i,CWnd *pParent,CRect rect,CRect RcList)
{
/*WNDCLASS wndcls;
memset(&wndcls, 0, sizeof(WNDCLASS));
wndcls.style = 0;
wndcls.lpfnWndProc = ::DefWindowProc;
wndcls.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wndcls.lpszClassName = "ABC";
DWORD style = GetClassLong(m_hWnd, GCL_STYLE);
RegisterClass(&wndcls);*/
// style |= CS_PARENTDC;
// style &= ~(CS_VREDRAW|CS_HREDRAW);
// SetClassLong(m_hWnd, GCL_STYLE, style);


CWnd::Create(/*"ABC"*/0,"ECMLMItem",WS_BORDER|WS_VISIBLE|WS_CLIPCHILDREN|WS_CHILD,rect,this,LISTITEM+counter,0);
counter++;
obj[i] = new ECMLMObjects();
obj[i]->create(i,pParent,rect,RcList);

}

void ECMLMItem::CreateItem(CWnd *pParent,int i)
{

if(i<10)
{
rect.left=RcList.left+12;
rect.top=RcList.top+20*i+1;
rect.right=RcList.right-12;
rect.bottom=rect.top+20;
ECMLMItem::Create(i,pParent,rect,RcList);//create a new item as a rectangle to put 3 objects in it

}

}

//
void ECMLMObjects::create(int i,CWnd *pParent,CRect rect,CRect RcList)
{
int w;
w=RcList.Width()-20;

rect.left=RcList.left+12;
rect.top=RcList.top+20*i+5;
rect.right=rect.left+w*3/15-2;
rect.bottom=rect.top+20;
btn[i].Create(""/*text*/,WS_CHILD|WS_VISIBLE|BS_AUTOCHECKBOX,rect,pParent,Button+i);

rect.left=RcList.left+w*3/15+15;
rect.top=RcList.top+20*i+5;
rect.right=rect.left+w*4/15-4;
rect.bottom=rect.top+20;
edt[i].Create(WS_VISIBLE|WS_CHILD,rect,pParent,editbox+i);

rect.left=RcList.left+w*7/15+15;
rect.top=RcList.top+20*i+5;
rect.right=RcList.right-12;
rect.bottom=rect.top+20;
name[i].Create("Hello"/*name*/,WS_VISIBLE|WS_CHILD,rect,pParent,statictext+i);
}


//
GeneralRe: parent doesn't let the child to be visible in mfc Pin
Naveen19-Sep-06 20:47
Naveen19-Sep-06 20:47 
GeneralRe: parent doesn't let the child to be visible in mfc Pin
sepehr_vision19-Sep-06 20:58
sepehr_vision19-Sep-06 20:58 
GeneralRe: parent doesn't let the child to be visible in mfc Pin
Naveen19-Sep-06 21:40
Naveen19-Sep-06 21:40 
AnswerRe: parent doesn't let the child to be visible in mfc Pin
Hamid_RT19-Sep-06 20:33
Hamid_RT19-Sep-06 20:33 
GeneralRe: parent doesn't let the child to be visible in mfc Pin
sepehr_vision19-Sep-06 21:03
sepehr_vision19-Sep-06 21:03 
QuestionDisplaying arabic characters in excel Pin
pac2819-Sep-06 20:08
pac2819-Sep-06 20:08 
QuestionOwnerDraw ListCtrl with CheckBox Pin
Nishad S19-Sep-06 19:57
Nishad S19-Sep-06 19:57 
AnswerRe: OwnerDraw ListCtrl with CheckBox Pin
Hamid_RT19-Sep-06 20:31
Hamid_RT19-Sep-06 20:31 
GeneralRe: OwnerDraw ListCtrl with CheckBox Pin
Nishad S19-Sep-06 20:48
Nishad S19-Sep-06 20:48 
QuestionSparse Tables Pin
nyteryder7919-Sep-06 19:46
nyteryder7919-Sep-06 19:46 
AnswerRe: Sparse Tables Pin
_AnsHUMAN_ 19-Sep-06 20:00
_AnsHUMAN_ 19-Sep-06 20:00 
QuestionHow to display data in controls for the second time Pin
vc++_fragrance19-Sep-06 19:09
vc++_fragrance19-Sep-06 19:09 
QuestionMFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
skyapie19-Sep-06 18:27
skyapie19-Sep-06 18:27 
AnswerRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
Rinu_Raj19-Sep-06 18:33
Rinu_Raj19-Sep-06 18:33 
GeneralRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
Stephen Hewitt19-Sep-06 18:57
Stephen Hewitt19-Sep-06 18:57 
GeneralRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
Rinu_Raj19-Sep-06 19:01
Rinu_Raj19-Sep-06 19:01 
GeneralRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
ANIL KUMAR SHARMA (INDIA)14-Jul-09 19:17
ANIL KUMAR SHARMA (INDIA)14-Jul-09 19:17 

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.