Click here to Skip to main content
15,913,167 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Checks in a list box... Pin
Baatezu1-Aug-02 8:42
Baatezu1-Aug-02 8:42 
GeneralRe: Checks in a list box... Pin
Chris Losinger1-Aug-02 9:01
professionalChris Losinger1-Aug-02 9:01 
QuestionUndo implementation??? Pin
alex.barylski31-Jul-02 17:03
alex.barylski31-Jul-02 17:03 
AnswerRe: Undo implementation??? Pin
Chris Losinger31-Jul-02 17:14
professionalChris Losinger31-Jul-02 17:14 
GeneralRe: Undo implementation??? Pin
alex.barylski31-Jul-02 19:24
alex.barylski31-Jul-02 19:24 
AnswerRe: Undo implementation??? Pin
Roger Allen1-Aug-02 2:57
Roger Allen1-Aug-02 2:57 
GeneralRe: Undo implementation??? Pin
alex.barylski1-Aug-02 8:28
alex.barylski1-Aug-02 8:28 
GeneralProblem changing styles in CListView Pin
ijprest31-Jul-02 16:53
ijprest31-Jul-02 16:53 
I created an app with the MFC AppWizard (in VS.net), and chose the "explorer-style project" option, which creates two panes---a TreeView on the left, and a ListView on the right. The wizard also generates a toolbar with buttons for each of the ListView styles (icon, small icon, list, and report), and the necessary code to change between the styles (via the ModifyStyle function).

Unfortunately, it doesn't work. Oh, the style does get changed. I even get the OnStyleChanged notification. But the ListView doesn't change styles. (I can change the initial style in PreCreateWindow, but I want to do it dynamically.)

The only changes made to the AppWizard-generated application were to add a few items to the listbox (in OnInitialUpdate):

<br />
GetListCtrl().InsertColumn(0, "foo");<br />
GetListCtrl().InsertItem(0, "aaa");<br />
GetListCtrl().InsertItem(1, "bbb");<br />
GetListCtrl().InsertItem(2, "ccc");<br />


What's going on? Am I missing something really obvious?

Thanks,
GeneralRe: Problem changing styles in CListView Pin
Hydralisk31-Jul-02 17:40
Hydralisk31-Jul-02 17:40 
GeneralRe: Problem changing styles in CListView Pin
ijprest1-Aug-02 14:45
ijprest1-Aug-02 14:45 
GeneralRe: Problem changing styles in CListView Pin
ijprest2-Aug-02 20:07
ijprest2-Aug-02 20:07 
GeneralAfxGetMainWnd while creating CMainFrame Pin
Miguel Lopes31-Jul-02 14:07
Miguel Lopes31-Jul-02 14:07 
GeneralRe: AfxGetMainWnd while creating CMainFrame Pin
PJ Arends31-Jul-02 14:48
professionalPJ Arends31-Jul-02 14:48 
GeneralRe: AfxGetMainWnd while creating CMainFrame Pin
Miguel Lopes1-Aug-02 3:28
Miguel Lopes1-Aug-02 3:28 
GeneralRe: AfxGetMainWnd while creating CMainFrame Pin
PJ Arends1-Aug-02 7:07
professionalPJ Arends1-Aug-02 7:07 
GeneralRe: AfxGetMainWnd while creating CMainFrame Pin
Miguel Lopes1-Aug-02 8:48
Miguel Lopes1-Aug-02 8:48 
GeneralRe: AfxGetMainWnd while creating CMainFrame Pin
PJ Arends1-Aug-02 9:14
professionalPJ Arends1-Aug-02 9:14 
GeneralRe: AfxGetMainWnd while creating CMainFrame Pin
Miguel Lopes2-Aug-02 0:57
Miguel Lopes2-Aug-02 0:57 
Question'Notify'-> WS_NOTIFY?!? Pin
Selevercin31-Jul-02 14:03
Selevercin31-Jul-02 14:03 
AnswerRe: 'Notify'-> WS_NOTIFY?!? Pin
Marc Clifton31-Jul-02 14:29
mvaMarc Clifton31-Jul-02 14:29 
GeneralRe: 'Notify'-> WS_NOTIFY?!? Pin
Selevercin31-Jul-02 14:44
Selevercin31-Jul-02 14:44 
GeneralRe: 'Notify'-> WS_NOTIFY?!? Pin
Marc Clifton31-Jul-02 16:29
mvaMarc Clifton31-Jul-02 16:29 
AnswerRe: 'Notify'-> WS_NOTIFY?!? Pin
PJ Arends31-Jul-02 14:44
professionalPJ Arends31-Jul-02 14:44 
GeneralRe: 'Notify'-> WS_NOTIFY?!? Pin
Selevercin31-Jul-02 14:54
Selevercin31-Jul-02 14:54 
GeneralRe: 'Notify'-> WS_NOTIFY?!? Pin
PJ Arends31-Jul-02 15:09
professionalPJ Arends31-Jul-02 15:09 

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.