Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSYSTEMTIME question Pin
YaronNir26-Jul-03 22:27
YaronNir26-Jul-03 22:27 
GeneralRe: SYSTEMTIME question Pin
Michael Dunn26-Jul-03 22:35
sitebuilderMichael Dunn26-Jul-03 22:35 
GeneralRe: SYSTEMTIME question Pin
YaronNir27-Jul-03 4:41
YaronNir27-Jul-03 4:41 
GeneralRe: SYSTEMTIME question Pin
YaronNir27-Jul-03 4:45
YaronNir27-Jul-03 4:45 
GeneralRe: SYSTEMTIME question Pin
Michael Dunn27-Jul-03 11:27
sitebuilderMichael Dunn27-Jul-03 11:27 
GeneralATL in vs.net Pin
novachen26-Jul-03 21:29
novachen26-Jul-03 21:29 
GeneralRe: ATL in vs.net Pin
Michael Dunn26-Jul-03 22:37
sitebuilderMichael Dunn26-Jul-03 22:37 
GeneralCalculate the required size of text to fit in column Pin
drabudawood26-Jul-03 20:39
drabudawood26-Jul-03 20:39 
Confused | :confused: How can I calculate the required size of text which can be placed in one column of CListCtrl object and fits in.

when I tried to use the next code, some text did not appear all, I get three dots at the end of the appeared text on the column.

Can you help me please what is wrong with code ?

void CMyDialogDlg::AdjustColSize(int ColNo,CString s)
{
CClientDC dc(this);
CSize sz;
CFont *f = m_ListControl.GetFont();
dc.SelectObject(f);
sz = dc.GetTextExtent(s,_tcslen(s));
sz.cx += GetSystemMetrics(SM_CXBORDER);

if( width[ColNo] < sz.cx )
{
m_ListControl.SetColumnWidth(ColNo,sz.cx);
width[ColNo]=sz.cx;
}

}

Dr Abudawood
GeneralRe: Calculate the required size of text to fit in column Pin
Michael Dunn26-Jul-03 22:42
sitebuilderMichael Dunn26-Jul-03 22:42 
GeneralRe: Calculate the required size of text to fit in column Pin
drabudawood27-Jul-03 1:32
drabudawood27-Jul-03 1:32 
GeneralRe: Calculate the required size of text to fit in column Pin
drabudawood27-Jul-03 1:44
drabudawood27-Jul-03 1:44 
GeneralRe: Calculate the required size of text to fit in column Pin
Michael Dunn27-Jul-03 2:14
sitebuilderMichael Dunn27-Jul-03 2:14 
GeneralProblem with outp() in vc6.0 Pin
funwey26-Jul-03 19:44
funwey26-Jul-03 19:44 
GeneralRe: Problem with outp() in vc6.0 Pin
phlipping26-Jul-03 20:15
phlipping26-Jul-03 20:15 
GeneralRe: Problem with outp() in vc6.0 Pin
Erik Funkenbusch26-Jul-03 20:46
Erik Funkenbusch26-Jul-03 20:46 
GeneralExtended chars with SendInput Pin
phlipping26-Jul-03 19:01
phlipping26-Jul-03 19:01 
QuestionHow reliable is "cin" for receiving data? Pin
WREY26-Jul-03 17:56
WREY26-Jul-03 17:56 
AnswerRe: How reliable is "cin" for receiving data? Pin
Beer2626-Jul-03 18:12
Beer2626-Jul-03 18:12 
GeneralRe: How reliable is &quot;cin&quot; for receiving data? Pin
WREY26-Jul-03 18:48
WREY26-Jul-03 18:48 
GeneralRe: How reliable is &quot;cin&quot; for receiving data? Pin
Ryan Binns26-Jul-03 20:26
Ryan Binns26-Jul-03 20:26 
GeneralRe: How reliable is "cin" for receiving data? Pin
Beer2627-Jul-03 2:48
Beer2627-Jul-03 2:48 
GeneralRe: How reliable is &quot;cin&quot; for receiving data? Pin
Ryan Binns27-Jul-03 4:06
Ryan Binns27-Jul-03 4:06 
GeneralRe: How reliable is &quot;cin&quot; for receiving data? Pin
Beer2627-Jul-03 4:37
Beer2627-Jul-03 4:37 
GeneralRe: How reliable is &quot;cin&quot; for receiving data? Pin
Bob Stanneveld27-Jul-03 8:16
Bob Stanneveld27-Jul-03 8:16 
QuestionHow can I execute a .chm file? Pin
DanYELL26-Jul-03 15:25
DanYELL26-Jul-03 15:25 

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.