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

C / C++ / MFC

 
GeneralRe: Unicode CString init from &#XXXX;&#YYYY; representation Pin
lob28-Jan-05 9:30
Memberlob28-Jan-05 9:30 
GeneralConsole Output Pin
IronMike27-Jan-05 23:51
MemberIronMike27-Jan-05 23:51 
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 
HI
I am Creating ChecklistBox it shows Vertical Scroll Bar but not Horizental why ? I am using Horizental Scroll bar style.
Reply me urgent

Code is below

int CChkListDlg::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_VSCROLL|
WS_HSCROLL | LBS_HASSTRINGS | LBS_NOTIFY;

// Abov style has Horiztl and Vertcl Scroll Style

CRect rcDlg;
GetWindowRect(&rcDlg);
ScreenToClient(&rcDlg);

int L = (int)( 7.0 * rcDlg.Width() / 157.0);
int T = (int)( 19.0 * rcDlg.Height() / 167.0);
int R = (int)( 148.0 * rcDlg.Width() / 157.0);
int B = (int)( 118.0 * rcDlg.Height() / 167.0);
CRect ReqRect(L, T, R, B);
m_ChkListBox.Create(dwStyle, ReqRect, this, IDC_CHKFORCEDVAR);

Font.CreatePointFont(8 * 10, "Arial");
m_ChkListBox.SetFont(&Font);

for(int i=0; i<10 ; i++)
{
CString str;
str= " Data ";
m_ChkListBox.AddString(str);
}

return 0;
}


Regards.
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 
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 

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.