Click here to Skip to main content
15,892,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Console Output Pin
trelliot28-Jan-05 2:33
trelliot28-Jan-05 2:33 
GeneralRe: Console Output Pin
IronMike28-Jan-05 3:06
IronMike28-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
IronMike28-Jan-05 3:09 
GeneralSolution: Console Output Pin
IronMike31-Jan-05 21:38
IronMike31-Jan-05 21:38 
GeneralHorizental Scroll is not Appearing in CCheckListBox .. Urgent Pin
zahid_ash27-Jan-05 23:38
zahid_ash27-Jan-05 23:38 
GeneralRe: Horizental Scroll is not Appearing in CCheckListBox .. Urgent Pin
tanvon malik28-Jan-05 2:22
tanvon malik28-Jan-05 2:22 
GeneralRe: Horizental Scroll is not Appearing in CCheckListBox .. Urgent Pin
zahid_ash28-Jan-05 2:54
zahid_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
zahid_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
zahid_ash28-Jan-05 3:31 
GeneralRe: is it for CheckListbox too Pin
tanvon malik28-Jan-05 3:48
tanvon malik28-Jan-05 3:48 
GeneralRe: I tried but not working Pin
tanvon malik28-Jan-05 3:32
tanvon malik28-Jan-05 3:32 
GeneralIt works but After Addstring() Pin
zahid_ash30-Jan-05 19:07
zahid_ash30-Jan-05 19:07 
QuestiondWhat is protected inheritance? Pin
phijophlip27-Jan-05 22:53
phijophlip27-Jan-05 22:53 
AnswerRe: dWhat is protected inheritance? Pin
Ryan Binns28-Jan-05 0:49
Ryan Binns28-Jan-05 0:49 
GeneralRe: dWhat is protected inheritance? Pin
trelliot28-Jan-05 2:46
trelliot28-Jan-05 2:46 
AnswerRe: dWhat is protected inheritance? Pin
Selvam R28-Jan-05 1:09
professionalSelvam R28-Jan-05 1:09 
AnswerRe: dWhat is protected inheritance? Pin
trelliot28-Jan-05 2:39
trelliot28-Jan-05 2:39 
GeneralCode for Hibernate and turn of monitor Pin
Rajesh_K_Sharma27-Jan-05 21:39
Rajesh_K_Sharma27-Jan-05 21:39 
GeneralRe: Code for Hibernate and turn of monitor Pin
geo_m27-Jan-05 21:49
geo_m27-Jan-05 21:49 
Generalgamma Pin
viliam27-Jan-05 21:39
viliam27-Jan-05 21:39 
GeneralHelp to debug Error!! Pin
Anonymous27-Jan-05 21:13
Anonymous27-Jan-05 21:13 
GeneralRe: Help to debug Error!! Pin
James R. Twine28-Jan-05 2:44
James 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.