Click here to Skip to main content
15,928,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Allocation problem Pin
Tim Smith11-Feb-02 9:54
Tim Smith11-Feb-02 9:54 
GeneralRe: Memory Allocation problem Pin
ISIS5511-Feb-02 10:40
ISIS5511-Feb-02 10:40 
GeneralCFile::write | create and Windows 2000/XP Pin
mimi11-Feb-02 8:59
mimi11-Feb-02 8:59 
GeneralRe: CFile::write | create and Windows 2000/XP Pin
Mazdak11-Feb-02 9:40
Mazdak11-Feb-02 9:40 
GeneralMANY THANKS ! Pin
mimi11-Feb-02 10:15
mimi11-Feb-02 10:15 
GeneralTrying to use CFormView in a dialog :o) Pin
Jon Hulatt11-Feb-02 8:28
Jon Hulatt11-Feb-02 8:28 
GeneralWhy I now feel like a spanner Pin
Jon Hulatt11-Feb-02 8:30
Jon Hulatt11-Feb-02 8:30 
GeneralCListCtrl report - resizeing columns (resezing same in Outlook 98/2000/2002 - solution !(?) ) Pin
Wizard_0111-Feb-02 4:28
Wizard_0111-Feb-02 4:28 
I have problem with style report in the concrete with resizeing columns. I wrote code to autoresize(as resizeing column in Outlook) column but problem is while users changeing width of App (for example CListView in SDI app). During resizeing (because width of column is not changeing at once) users can see horz. scrollbar. Present MS-Outlook - here is same case.

Can I set width of column at once ? Currently I useing function SetItem().

My Code :
HRESULT CDodomuHeaderCtrl::OnLayout(WPARAM wparam,LPARAM lparam){
if (!m_bNowResizeing){
AutoSizeItems();
LPHDLAYOUT lay = (LPHDLAYOUT)lparam;
HRESULT lResult = CHeaderCtrl::DefWindowProc(HDM_LAYOUT, 0, lparam);
return lResult;
}
else {
return NULL;
}
}

void AutoSizeItem(){
... compute new width
m_bNowResizeing = true;
for(....){ // (remark 1)
HDITEM item;
... fill struct
SetItem(i,&item);
}
m_bNowResizeing = false;

}

-----

remark 1. :
Here is greatest problem : If users decrease width of ListCtrl will in moment width of all column >> ( Frown | :-( ) then client area and Windows (CListCtrl) show horz. scrollbar.


Please ... Can you help me ?


Thank VERY MUCH !!!!

Roll eyes | :rolleyes:

Wizard
GeneralRe: CListCtrl report - resizeing columns (resezing same in Outlook 98/2000/2002 - solution !(?) ) Pin
Joaquín M López Muñoz11-Feb-02 5:07
Joaquín M López Muñoz11-Feb-02 5:07 
GeneralRe: CListCtrl report - resizeing columns (resezing same in Outlook 98/2000/2002 - solution !(?) ) Pin
Wizard_0111-Feb-02 5:15
Wizard_0111-Feb-02 5:15 
Questionhow to set default size of propertypage Pin
parag11-Feb-02 3:45
parag11-Feb-02 3:45 
AnswerRe: how to set default size of propertypage Pin
Joaquín M López Muñoz11-Feb-02 4:26
Joaquín M López Muñoz11-Feb-02 4:26 
QuestionWhy do my radio buttons never appear in Classwizard? Pin
Jon Hulatt11-Feb-02 3:17
Jon Hulatt11-Feb-02 3:17 
AnswerRe: Why do my radio buttons never appear in Classwizard? Pin
Mazdak11-Feb-02 3:32
Mazdak11-Feb-02 3:32 
AnswerRe: Why do my radio buttons never appear in Classwizard? Pin
Rickard Andersson2011-Feb-02 3:47
Rickard Andersson2011-Feb-02 3:47 
GeneralRe: Why do my radio buttons never appear in Classwizard? Pin
Jon Hulatt11-Feb-02 4:20
Jon Hulatt11-Feb-02 4:20 
AnswerRe: Why do my radio buttons never appear in Classwizard? Pin
Nish Nishant11-Feb-02 5:08
sitebuilderNish Nishant11-Feb-02 5:08 
QuestionWizards in WinCe? Pin
VanHlebar11-Feb-02 3:00
VanHlebar11-Feb-02 3:00 
GeneralVisual C++ & OpenGL Pin
Rajveer11-Feb-02 2:42
Rajveer11-Feb-02 2:42 
GeneralSubclassing a CListCtrl Pin
Jerome Conus11-Feb-02 2:31
Jerome Conus11-Feb-02 2:31 
GeneralRe: Subclassing a CListCtrl Pin
Mazdak11-Feb-02 2:41
Mazdak11-Feb-02 2:41 
GeneralRe: Subclassing a CListCtrl Pin
Sam Levy11-Feb-02 3:12
Sam Levy11-Feb-02 3:12 
GeneralRe: Subclassing a CListCtrl Pin
alex.barylski11-Feb-02 3:39
alex.barylski11-Feb-02 3:39 
GeneralRe: Subclassing a CListCtrl Pin
Mazdak11-Feb-02 9:35
Mazdak11-Feb-02 9:35 
Generalopen dialog Pin
11-Feb-02 2:29
suss11-Feb-02 2:29 

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.