Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Automation Project using MFC and a type library : Error Excel::_Application cannot instantiate abstract class Pin
Iain Clarke, Warrior Programmer2-Oct-08 4:15
Iain Clarke, Warrior Programmer2-Oct-08 4:15 
GeneralRe: Automation Project using MFC and a type library : Error Excel::_Application cannot instantiate abstract class Pin
sdancer752-Oct-08 22:58
sdancer752-Oct-08 22:58 
GeneralRe: Automation Project using MFC and a type library : Error Excel::_Application cannot instantiate abstract class Pin
Iain Clarke, Warrior Programmer4-Oct-08 8:08
Iain Clarke, Warrior Programmer4-Oct-08 8:08 
QuestionMoving Button with moving dialog. Pin
gothic_coder2-Oct-08 0:50
gothic_coder2-Oct-08 0:50 
AnswerRe: Moving Button with moving dialog. Pin
gothic_coder2-Oct-08 0:56
gothic_coder2-Oct-08 0:56 
AnswerRe: Moving Button with moving dialog. Pin
Iain Clarke, Warrior Programmer2-Oct-08 2:28
Iain Clarke, Warrior Programmer2-Oct-08 2:28 
GeneralRe: Moving Button with moving dialog. Pin
gothic_coder2-Oct-08 2:41
gothic_coder2-Oct-08 2:41 
GeneralRe: Moving Button with moving dialog. Pin
Iain Clarke, Warrior Programmer2-Oct-08 3:46
Iain Clarke, Warrior Programmer2-Oct-08 3:46 
I did tell you it was from memory. You've proven my point - you have a loop, a setwindowpos, and a sleep.

Nowhere do you handle messages in the message queue.

SetWindowPos will generate WM_SIZE, WM_MOVE, etc, which in turn invalidate your window, which ends up doing WM_PAINT. So, no painting of contents.

I AM PSYCHIC!

Try the following:
for(;thisWindowRect.top > SlideDialog.top- 164; thisWindowRect.top--)
{
     SetWindowPos(hWnd, NULL,thisWindowRect.left, thisWindowRect.top, 0, 0, SWP_NOSIZE);
     Sleep(20);
     UpdateWindow (hWnd);
}


This should redraw the dialog window. It might not redraw any child controls, in which case you are going to have to rethink your design.

If AnimateWindow does not work under windows NT, then don't use it. Try using LoadLibrary to attempt the function. If it fails, then take that as a hint to skip the whole animation process entirely. You users of old OS's will thank you for it.

Iain.
GeneralWow. Pin
CPallini2-Oct-08 3:09
mveCPallini2-Oct-08 3:09 
QuestionHow to change current working directory in c/c++? Pin
Gofur Halmurat2-Oct-08 0:04
Gofur Halmurat2-Oct-08 0:04 
AnswerRe: How to change current working directory in c/c++? Pin
sashoalm2-Oct-08 0:12
sashoalm2-Oct-08 0:12 
GeneralRe: How to change current working directory in c/c++? Pin
Gofur Halmurat2-Oct-08 0:18
Gofur Halmurat2-Oct-08 0:18 
GeneralRe: How to change current working directory in c/c++? Pin
CPallini2-Oct-08 0:29
mveCPallini2-Oct-08 0:29 
AnswerRe: How to change current working directory in c/c++? Pin
CPallini2-Oct-08 0:20
mveCPallini2-Oct-08 0:20 
GeneralRe: How to change current working directory in c/c++? Pin
Gofur Halmurat2-Oct-08 0:43
Gofur Halmurat2-Oct-08 0:43 
QuestionRe: How to change current working directory in c/c++? Pin
CPallini2-Oct-08 0:58
mveCPallini2-Oct-08 0:58 
GeneralRe: How to change current working directory in c/c++? Pin
Hamid_RT2-Oct-08 19:36
Hamid_RT2-Oct-08 19:36 
QuestionCapturing events from the MS Office Appications for a skill test application Pin
sdancer751-Oct-08 23:01
sdancer751-Oct-08 23:01 
QuestionGood references on multithreading in C++ [modified] Pin
Steven Swart1-Oct-08 22:35
Steven Swart1-Oct-08 22:35 
AnswerRe: Good references on multithreading in C++ Pin
Roger Stoltz1-Oct-08 22:55
Roger Stoltz1-Oct-08 22:55 
GeneralRe: Good references on multithreading in C++ Pin
Steven Swart1-Oct-08 23:36
Steven Swart1-Oct-08 23:36 
GeneralRe: Good references on multithreading in C++ Pin
Roger Stoltz1-Oct-08 23:47
Roger Stoltz1-Oct-08 23:47 
GeneralRe: Good references on multithreading in C++ Pin
Steven Swart2-Oct-08 0:10
Steven Swart2-Oct-08 0:10 
GeneralRe: Good references on multithreading in C++ Pin
Steven Swart7-Oct-08 22:28
Steven Swart7-Oct-08 22:28 
AnswerRe: Good references on multithreading in C++ Pin
Hamid_RT2-Oct-08 19:35
Hamid_RT2-Oct-08 19:35 

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.