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

C / C++ / MFC

 
AnswerRe: multi thread opengl Pin
Bob Stanneveld9-Sep-05 0:59
Bob Stanneveld9-Sep-05 0:59 
QuestionRLE8 to BMP Pin
Zyziek8-Sep-05 20:30
Zyziek8-Sep-05 20:30 
QuestionFrench Win XP Pin
Identity Undisclosed8-Sep-05 20:05
Identity Undisclosed8-Sep-05 20:05 
AnswerRe: French Win XP Pin
toxcct8-Sep-05 21:06
toxcct8-Sep-05 21:06 
QuestionCListView Pin
study.sourabh8-Sep-05 20:00
study.sourabh8-Sep-05 20:00 
AnswerRe: CListView Pin
David Crow9-Sep-05 3:00
David Crow9-Sep-05 3:00 
GeneralRe: CListView Pin
study.sourabh11-Sep-05 22:04
study.sourabh11-Sep-05 22:04 
GeneralRe: CListView Pin
Anonymous13-Sep-05 20:58
Anonymous13-Sep-05 20:58 
hi..
yes to stop the user from resizing the first column i overrided the header item change message like

void CMyView::OnItemchanging(NMHDR* pNMHDR, LRESULT* pResult)
{
HD_NOTIFY *phdn = (HD_NOTIFY *) pNMHDR;
if((phdn->hdr.code ==HDN_ITEMCHANGING)&&phdn->iItem ==0)
{
*pResult = TRUE;
return ;
}

*pResult = 0;
}

probably this was the cause.
any how calling RedrawWindow() in item changing solved the problem.

code is like

void CDirView::OnItemchanged(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;


if(m_nNoItemChange && LVIS_SELECTED == m_List.GetItemState(pNMListView->iItem,LVIS_SELECTED))
{
//my neaded code here
}

*pResult = 0;

RedrawWindow();
}

but i dont know if this is a proper methord. and i would like to know if i can set the size of each column in onitemchanging of header.
thanks...

Questionhow to exit from istream_iterator Pin
Member 22477498-Sep-05 19:29
Member 22477498-Sep-05 19:29 
Question"Conversion of bmp to jpeg file format using VC++" Pin
aasstt8-Sep-05 19:17
aasstt8-Sep-05 19:17 
AnswerRe: "Conversion of bmp to jpeg file format using VC++" Pin
prasad_som8-Sep-05 19:27
prasad_som8-Sep-05 19:27 
AnswerRe: "Conversion of bmp to jpeg file format using VC++" Pin
Chris Losinger9-Sep-05 5:31
professionalChris Losinger9-Sep-05 5:31 
QuestionMFC's TreeCtrl customization Pin
Sivaji8-Sep-05 19:03
Sivaji8-Sep-05 19:03 
AnswerRe: MFC's TreeCtrl customization Pin
Anonymous9-Sep-05 23:47
Anonymous9-Sep-05 23:47 
QuestionSimple Application Pin
TMCC8-Sep-05 18:32
TMCC8-Sep-05 18:32 
AnswerRe: Simple Application Pin
kakan8-Sep-05 20:07
professionalkakan8-Sep-05 20:07 
AnswerRe: Simple Application Pin
toxcct8-Sep-05 21:14
toxcct8-Sep-05 21:14 
JokeRe: Simple Application Pin
Eytukan9-Sep-05 1:28
Eytukan9-Sep-05 1:28 
AnswerRe: Simple Application Pin
David Crow9-Sep-05 3:04
David Crow9-Sep-05 3:04 
QuestionExample of interface for server Pin
Member 21610048-Sep-05 17:13
Member 21610048-Sep-05 17:13 
AnswerRe: Example of interface for server Pin
Christian Graus8-Sep-05 17:25
protectorChristian Graus8-Sep-05 17:25 
GeneralRe: Example of interface for server Pin
Member 21610048-Sep-05 20:30
Member 21610048-Sep-05 20:30 
GeneralRe: Example of interface for server Pin
Christian Graus11-Sep-05 11:14
protectorChristian Graus11-Sep-05 11:14 
Questionround a float to int Pin
followait8-Sep-05 15:40
followait8-Sep-05 15:40 
AnswerRe: round a float to int Pin
Christian Graus8-Sep-05 15:44
protectorChristian Graus8-Sep-05 15: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.