Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Copy Excel Sheet Pin
Davitor27-Jul-09 23:20
Davitor27-Jul-09 23:20 
GeneralRe: Copy Excel Sheet Pin
Rajesh R Subramanian28-Jul-09 0:37
professionalRajesh R Subramanian28-Jul-09 0:37 
GeneralRe: Copy Excel Sheet Pin
Davitor28-Jul-09 0:47
Davitor28-Jul-09 0:47 
GeneralRe: Copy Excel Sheet Pin
Davitor28-Jul-09 1:47
Davitor28-Jul-09 1:47 
QuestionCalling A While Loop On Form1_Load Pin
tension66627-Jul-09 21:09
tension66627-Jul-09 21:09 
QuestionRe: Calling A While Loop On Form1_Load Pin
CPallini27-Jul-09 21:14
mveCPallini27-Jul-09 21:14 
AnswerRe: Calling A While Loop On Form1_Load [modified] Pin
SandipG 27-Jul-09 21:33
SandipG 27-Jul-09 21:33 
AnswerRe: Calling A While Loop On Form1_Load Pin
KarstenK27-Jul-09 21:39
mveKarstenK27-Jul-09 21:39 
AnswerRe: Calling A While Loop On Form1_Load Pin
Adam Roderick J27-Jul-09 21:50
Adam Roderick J27-Jul-09 21:50 
AnswerRe: Calling A While Loop On Form1_Load Pin
«_Superman_»27-Jul-09 23:48
professional«_Superman_»27-Jul-09 23:48 
GeneralRe: Calling A While Loop On Form1_Load Pin
tension66628-Jul-09 9:05
tension66628-Jul-09 9:05 
Questionserial port interface in vc++ Pin
sarita_21627-Jul-09 20:45
sarita_21627-Jul-09 20:45 
AnswerRe: serial port interface in vc++ Pin
Adam Roderick J27-Jul-09 20:50
Adam Roderick J27-Jul-09 20:50 
QuestionRe: serial port interface in vc++ Pin
CPallini27-Jul-09 20:59
mveCPallini27-Jul-09 20:59 

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.