Click here to Skip to main content
14,872,451 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Console Output Pin
trelliot28-Jan-05 2:33
Membertrelliot28-Jan-05 2:33 
GeneralRe: Console Output Pin
IronMike28-Jan-05 3:06
MemberIronMike28-Jan-05 3:06 
GeneralRe: Console Output Pin
V.28-Jan-05 2:47
professionalV.28-Jan-05 2:47 
GeneralRe: Console Output Pin
IronMike28-Jan-05 3:09
MemberIronMike28-Jan-05 3:09 
GeneralSolution: Console Output Pin
IronMike31-Jan-05 21:38
MemberIronMike31-Jan-05 21:38 
GeneralHorizental Scroll is not Appearing in CCheckListBox .. Urgent Pin
zahid_ash27-Jan-05 23:38
Memberzahid_ash27-Jan-05 23:38 
GeneralRe: Horizental Scroll is not Appearing in CCheckListBox .. Urgent Pin
tanvon malik28-Jan-05 2:22
Membertanvon malik28-Jan-05 2:22 
GeneralRe: Horizental Scroll is not Appearing in CCheckListBox .. Urgent Pin
zahid_ash28-Jan-05 2:54
Memberzahid_ash28-Jan-05 2:54 
thanks for the reply
Where i should this Function in coding ?

I tried it . But it is not Working.

code is :

int CRemoveConstraintsDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDialog::OnCreate(lpCreateStruct) == -1)
return -1;

// TODO: Add your specialized creation code here
DWORD dwStyle = WS_CHILD | WS_BORDER | WS_VISIBLE | WS_HSCROLL |WS_VSCROLL | LBS_HASSTRINGS | LBS_NOTIFY;
CRect rcDlg;
GetWindowRect(&rcDlg);
ScreenToClient(&rcDlg);
int L = (int)(7.0 * rcDlg.Width() / 150.0);
int T = (int)(18.0 * rcDlg.Height() / 168.0);
int R = (int)(141.0 * rcDlg.Width() / 150.0);
int B = (int)(111.0 * rcDlg.Height() / 168.0);

CRect ReqRect(L, T, R, B);
m_ConsChkListBox.Create(dwStyle, ReqRect, this, IDC_CONSTRAINTS);
if(!AddConstraints())
return -1;
return 0;
}

bool CRemoveConstraintsDlg::AddConstraints()
{
/*for(i=0; i<m_conschklistbox.getcount(); i++)
="" {
="" m_conschklistbox.deletestring(i);
="" }
="" *=""
="" csize="" sz;
="" cstring="" str;
="" textmetric="" tm;
="" int="" dx="0" ;
="" cdc*="" pdc="m_ConsChkListBox.GetDC();

" pdc-="">GetTextMetrics(&tm);


CStringArray* pList = m_pEdoData->GetpConstraintExpList();
for(int i=0; i<plist->GetSize(); i++)
{
m_ConsChkListBox.GetText(i, str);
sz = pDC->GetTextExtent(str);

m_ConsChkListBox.AddString(pList->GetAt(i));
sz.cx += tm.tmAveCharWidth;

if (sz.cx > dx)
dx = sz.cx;

}

m_ConsChkListBox.ReleaseDC(pDC);

// Set the horizontal extent so every character of all strings
// can be scrolled to.
m_ConsChkListBox.SetHorizontalExtent(dx);

return true;
}


waitng for ut reply
thanx


Regards.
GeneralRe: Horizental Scroll is not Appearing in CCheckListBox .. Urgent Pin
V.28-Jan-05 2:57
professionalV.28-Jan-05 2:57 
GeneralI tried but not working Pin
zahid_ash28-Jan-05 3:02
Memberzahid_ash28-Jan-05 3:02 
GeneralRe: I tried but not working Pin
V.28-Jan-05 3:07
professionalV.28-Jan-05 3:07 
Generalis it for CheckListbox too Pin
zahid_ash28-Jan-05 3:31
Memberzahid_ash28-Jan-05 3:31 
GeneralRe: is it for CheckListbox too Pin
tanvon malik28-Jan-05 3:48
Membertanvon malik28-Jan-05 3:48 
GeneralRe: I tried but not working Pin
tanvon malik28-Jan-05 3:32
Membertanvon malik28-Jan-05 3:32 
GeneralIt works but After Addstring() Pin
zahid_ash30-Jan-05 19:07
Memberzahid_ash30-Jan-05 19:07 
QuestiondWhat is protected inheritance? Pin
phijophlip27-Jan-05 22:53
Memberphijophlip27-Jan-05 22:53 
AnswerRe: dWhat is protected inheritance? Pin
Ryan Binns28-Jan-05 0:49
MemberRyan Binns28-Jan-05 0:49 
GeneralRe: dWhat is protected inheritance? Pin
trelliot28-Jan-05 2:46
Membertrelliot28-Jan-05 2:46 
AnswerRe: dWhat is protected inheritance? Pin
careerdrill28-Jan-05 1:09
Membercareerdrill28-Jan-05 1:09 
AnswerRe: dWhat is protected inheritance? Pin
trelliot28-Jan-05 2:39
Membertrelliot28-Jan-05 2:39 
GeneralCode for Hibernate and turn of monitor Pin
Rajesh_K_Sharma27-Jan-05 21:39
MemberRajesh_K_Sharma27-Jan-05 21:39 
GeneralRe: Code for Hibernate and turn of monitor Pin
geo_m27-Jan-05 21:49
Membergeo_m27-Jan-05 21:49 
Generalgamma Pin
viliam27-Jan-05 21:39
Memberviliam27-Jan-05 21:39 
GeneralHelp to debug Error!! Pin
Anonymous27-Jan-05 21:13
MemberAnonymous27-Jan-05 21:13 
GeneralRe: Help to debug Error!! Pin
James R. Twine28-Jan-05 2:44
MemberJames R. Twine28-Jan-05 2:44 

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.