Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: changing directorys Pin
(Steven Hicks)n+117-Jan-03 8:45
(Steven Hicks)n+117-Jan-03 8:45 
GeneralRe: changing directorys Pin
Jeremy Falcon17-Jan-03 11:15
professionalJeremy Falcon17-Jan-03 11:15 
GeneralRe: changing directorys Pin
(Steven Hicks)n+117-Jan-03 12:44
(Steven Hicks)n+117-Jan-03 12:44 
GeneralCListBox vs. CListCtrl Pin
The Lady of Shallots17-Jan-03 8:21
The Lady of Shallots17-Jan-03 8:21 
GeneralRe: CListBox vs. CListCtrl Pin
Joaquín M López Muñoz17-Jan-03 8:34
Joaquín M López Muñoz17-Jan-03 8:34 
GeneralRe: CListBox vs. CListCtrl Pin
Gary R. Wheeler18-Jan-03 14:55
Gary R. Wheeler18-Jan-03 14:55 
GeneralRichEdit Win2k vs. Win9x Pin
Ricky_TheBard17-Jan-03 6:41
Ricky_TheBard17-Jan-03 6:41 
GeneralSTL and OnDestroy.....very puzzled. Please help!!!! Pin
ns17-Jan-03 6:18
ns17-Jan-03 6:18 
I have a CDialog derived class and I'm storing pointers to the modeless objects I spawn in an STL vector. I use it like this in the View class :

int vecSize = ImageDisplayVector.size();
for (int i = 0; i < vecSize; i++)

{

CImageDisplay * pImageTemp = ImageDisplayVector[i];

    pImageTemp->ShowWindow(SW_HIDE);
}


where

std::vector <CImageDisplay*> ImageDisplayVector;
is global

and

class CImageDisplay : public CDialog


In the OnDestroy of the mainframe class i do the exact same thing:

int vecSize = ImageDisplayVector.size();
for (int i = 0; i < vecSize; i++)

{

CImageDisplay * pImageTemp = ImageDisplayVector[i];

WINDOWPLACEMENT wp;

     pImageTemp->GetWindowPlacement(&wp);

}


It asserts in GetWindowpLacement at IsWindow()..........


So if this function (in mainframe class) thinks my pointer isnt a window (and its not null I checked) then how come SHowWindow (VIew class)happily works with the pointer?

Appreciate your help,
ns
GeneralRe: STL and OnDestroy.....very puzzled. Please help!!!! Pin
AlexO17-Jan-03 7:01
AlexO17-Jan-03 7:01 
GeneralRe: STL and OnDestroy.....very puzzled. Please help!!!! Pin
ns17-Jan-03 7:12
ns17-Jan-03 7:12 
GeneralRe: STL and OnDestroy.....very puzzled. Please help!!!! Pin
ns17-Jan-03 7:16
ns17-Jan-03 7:16 
GeneralRe: STL and OnDestroy.....very puzzled. Please help!!!! Pin
ns17-Jan-03 7:18
ns17-Jan-03 7:18 
GeneralRe: STL and OnDestroy.....very puzzled. Please help!!!! Pin
AlexO17-Jan-03 7:53
AlexO17-Jan-03 7:53 
Generalthanks! Pin
ns17-Jan-03 9:06
ns17-Jan-03 9:06 
GeneralRe: STL and OnDestroy.....very puzzled. Please help!!!! Pin
Joaquín M López Muñoz17-Jan-03 7:30
Joaquín M López Muñoz17-Jan-03 7:30 
Generalhave a resolution (I think) Pin
ns17-Jan-03 8:02
ns17-Jan-03 8:02 
GeneralCapturing the change of an item in a listview... Pin
Joan M17-Jan-03 6:05
professionalJoan M17-Jan-03 6:05 
Generalclose application programatically Pin
Anonymous17-Jan-03 5:59
Anonymous17-Jan-03 5:59 
GeneralRe: close application programatically Pin
Gary Kirkham17-Jan-03 6:31
Gary Kirkham17-Jan-03 6:31 
GeneralRe: close application programatically Pin
Anonymous19-Jan-03 21:05
Anonymous19-Jan-03 21:05 
GeneralRe: close application programatically Pin
HENDRIK R20-Jan-03 2:02
HENDRIK R20-Jan-03 2:02 
GeneralRe: close application programatically Pin
Anonymous20-Jan-03 2:42
Anonymous20-Jan-03 2:42 
Questionperformance question? Pin
User 988517-Jan-03 5:03
User 988517-Jan-03 5:03 
AnswerRe: performance question? Pin
Joaquín M López Muñoz17-Jan-03 5:11
Joaquín M López Muñoz17-Jan-03 5:11 
GeneralRe: performance question? Pin
User 988517-Jan-03 5:34
User 988517-Jan-03 5:34 

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.