Click here to Skip to main content
15,909,466 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Window TopMost window on top??? Pin
john john mackey28-Jul-09 11:37
john john mackey28-Jul-09 11:37 
QuestionThreading STL Queue Pin
RS.Ratheesh28-Jul-09 1:40
RS.Ratheesh28-Jul-09 1:40 
QuestionRe: Threading STL Queue Pin
CPallini28-Jul-09 1:43
mveCPallini28-Jul-09 1:43 
AnswerRe: Threading STL Queue Pin
RS.Ratheesh28-Jul-09 2:02
RS.Ratheesh28-Jul-09 2:02 
GeneralRe: Threading STL Queue Pin
CPallini28-Jul-09 2:38
mveCPallini28-Jul-09 2:38 
AnswerRe: Threading STL Queue Pin
Maximilien28-Jul-09 3:16
Maximilien28-Jul-09 3:16 
NewsMessage Closed Pin
28-Jul-09 1:04
Dane Marcelo28-Jul-09 1:04 
GeneralRe: CppDepend: C++ tool for architect Pin
Garth J Lancaster28-Jul-09 1:24
professionalGarth J Lancaster28-Jul-09 1:24 
QuestionRe: CppDepend: C++ tool for architect Pin
CPallini28-Jul-09 1:44
mveCPallini28-Jul-09 1:44 
AnswerRe: CppDepend: C++ tool for architect Pin
Dane Marcelo28-Jul-09 5:04
Dane Marcelo28-Jul-09 5:04 
GeneralRe: [Message Deleted] Pin
ThatsAlok28-Jul-09 23:35
ThatsAlok28-Jul-09 23:35 
QuestionHow can get crashing locations of exe? Pin
Le@rner28-Jul-09 0:57
Le@rner28-Jul-09 0:57 
AnswerRe: How can get crashing locations of exe? Pin
Iain Clarke, Warrior Programmer28-Jul-09 2:26
Iain Clarke, Warrior Programmer28-Jul-09 2:26 
AnswerRe: How can get crashing locations of exe? Pin
_AnsHUMAN_ 28-Jul-09 2:32
_AnsHUMAN_ 28-Jul-09 2:32 
AnswerRe: How can get crashing locations of exe? Pin
«_Superman_»28-Jul-09 3:45
professional«_Superman_»28-Jul-09 3:45 
AnswerRe: How can get crashing locations of exe? Pin
Randor 28-Jul-09 5:43
professional Randor 28-Jul-09 5:43 
QuestionSTL Queue in MFC Pin
RS.Ratheesh28-Jul-09 0:53
RS.Ratheesh28-Jul-09 0:53 
AnswerRe: STL Queue in MFC Pin
Garth J Lancaster28-Jul-09 1:20
professionalGarth J Lancaster28-Jul-09 1:20 
QuestionCannot open type library file: 'msxml4.dll': No such file or directory Pin
Ash_VCPP28-Jul-09 0:45
Ash_VCPP28-Jul-09 0:45 
QuestionHow to bind a LPCTSTR property to a EditBox in property page? [modified] Pin
daCrazyDude27-Jul-09 23:14
daCrazyDude27-Jul-09 23:14 
AnswerRe: How to bind a LPCTSTR property to a EditBox in property page? Pin
KarstenK28-Jul-09 0:24
mveKarstenK28-Jul-09 0:24 
QuestionSetColumnWidth Pin
kumar sanghvi27-Jul-09 22:42
kumar sanghvi27-Jul-09 22:42 
Hi,
im using the below code to increase the column width of each item of HeaderCtrl ...
the below code works fine when the font in headerCtrl and ListCtrl is normal(ie font size 10) suppose if increase the font size in ListCtrl and HeaderCtrl the ColumnWidth is not calculated according the Text width..ie the text in the item of headerCtrl is getting ellipsed..

CHeaderCtrl* pHeaderCtrl = GetHeaderCtrl();
SetRedraw(FALSE);
int nColumnCount = pHeaderCtrl->GetItemCount();

for(int i = 0; i < nColumnCount; i++)
{
SetColumnWidth(i, LVSCW_AUTOSIZE);
int nColumnWidth = GetColumnWidth(i);

SetColumnWidth(i, LVSCW_AUTOSIZE_USEHEADER);
int nHeaderWidth = GetColumnWidth(i);

SetColumnWidth(i, max(nColumnWidth, nHeaderWidth));
}
SetRedraw(TRUE);

In the above code im planning to set the columnwidth of each item in the header Ctrl based on the max width among the text of item in ListCtrl and the text of item in HeaderCtrl...but when the font is increased it"s not calculated properly..
Please try to help..
QuestionRe: SetColumnWidth Pin
Randor 28-Jul-09 10:06
professional Randor 28-Jul-09 10:06 
QuestionCopy Excel Sheet Pin
Davitor27-Jul-09 22:19
Davitor27-Jul-09 22:19 
AnswerRe: Copy Excel Sheet Pin
Rajesh R Subramanian27-Jul-09 22:21
professionalRajesh R Subramanian27-Jul-09 22:21 

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.