Click here to Skip to main content
15,923,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to pass USER_LOGON variable to ActiveX developed in VC++? Pin
Ricardo Beja28-Sep-01 6:31
Ricardo Beja28-Sep-01 6:31 
GeneralVC++ AddIn - How does one open a window Pin
Franz Klein26-Sep-01 23:56
Franz Klein26-Sep-01 23:56 
GeneralPrevent CTreeCtrl from being auto collapsed Pin
Alex Dong26-Sep-01 23:45
Alex Dong26-Sep-01 23:45 
GeneralRe: Prevent CTreeCtrl from being auto collapsed Pin
27-Sep-01 0:35
suss27-Sep-01 0:35 
GeneralRe: Prevent CTreeCtrl from being auto collapsed Pin
27-Sep-01 15:12
suss27-Sep-01 15:12 
Generalstructuring in MFC Pin
JoNy26-Sep-01 23:03
JoNy26-Sep-01 23:03 
GeneralRe: structuring in MFC Pin
Tomasz Sowinski27-Sep-01 0:26
Tomasz Sowinski27-Sep-01 0:26 
GeneralRe: structuring in MFC Pin
JoNy27-Sep-01 1:42
JoNy27-Sep-01 1:42 
GeneralRe: structuring in MFC Pin
Tomasz Sowinski27-Sep-01 2:00
Tomasz Sowinski27-Sep-01 2:00 
GeneralInterprocess communication Pin
^GeeK^26-Sep-01 21:58
^GeeK^26-Sep-01 21:58 
GeneralRe: Interprocess communication Pin
Braulio Dez26-Sep-01 22:48
Braulio Dez26-Sep-01 22:48 
GeneralPassing Messages Between Processes Pin
26-Sep-01 20:53
suss26-Sep-01 20:53 
GeneralRe: Passing Messages Between Processes Pin
Michael Dunn26-Sep-01 21:16
sitebuilderMichael Dunn26-Sep-01 21:16 
GeneralRe: Passing Messages Between Processes Pin
26-Sep-01 21:35
suss26-Sep-01 21:35 
GeneralRe: Passing Messages Between Processes Pin
Christian Graus27-Sep-01 2:34
protectorChristian Graus27-Sep-01 2:34 
GeneralDirectX book Pin
26-Sep-01 20:41
suss26-Sep-01 20:41 
Generalextract a substring from CString Pin
Tryhard26-Sep-01 19:02
Tryhard26-Sep-01 19:02 
GeneralRe: extract a substring from CString Pin
Christian Graus26-Sep-01 19:12
protectorChristian Graus26-Sep-01 19:12 
QuestionHOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
26-Sep-01 16:55
suss26-Sep-01 16:55 
AnswerRe: HOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
Christian Graus26-Sep-01 17:22
protectorChristian Graus26-Sep-01 17:22 
GeneralRe: HOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
26-Sep-01 19:32
suss26-Sep-01 19:32 
GeneralRe: HOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
Christian Graus26-Sep-01 19:43
protectorChristian Graus26-Sep-01 19:43 
GeneralMultiple Processes: Threads, Messages, Etc Pin
Eric Sanchez26-Sep-01 16:28
Eric Sanchez26-Sep-01 16:28 
Hey,
Could any one please tell me any idea on how can i solve this problem. I made a list box in which files can be added and can also be zipped. However, all of this is done in a while loop so the dialog isn't receivng any messages, kind of freezing until the loop is done. I would like to be able to click Cancel but it's not working. I tried inserting this in the middle of the loop:

CWinApp* pApp = AfxGetApp();
MSG msg;
while ( PeekMessage ( &msg, NULL, 0, 0, PM_NOREMOVE ))
pApp->PumpMessage();

but it makes it a lot slower and while the files are being zipped this won't work.
I created a worker thread but the problem is that i need to call functions like:

next = m_files.GetNextItem(next-1 ,LVNI_SELECTED );

which are non static so the compiler will give me an error. It won't work either with GUI thread. Any suggesions on how to fix this?
Thanks alot.
Regards,
Eric
GeneralRe: Multiple Processes: Threads, Messages, Etc Pin
Michael Dunn26-Sep-01 17:02
sitebuilderMichael Dunn26-Sep-01 17:02 
GeneralRe: Multiple Processes: Threads, Messages, Etc Pin
Eric Sanchez27-Sep-01 2:47
Eric Sanchez27-Sep-01 2:47 

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.