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

C / C++ / MFC

 
GeneralThread in MFC DLL!!!!!!!!!!!!!!!! Pin
stevenson2-Nov-02 14:20
stevenson2-Nov-02 14:20 
GeneralRe: Thread in MFC DLL!!!!!!!!!!!!!!!! Pin
ian mariano2-Nov-02 14:48
ian mariano2-Nov-02 14:48 
GeneralRe: Thread in MFC DLL!!!!!!!!!!!!!!!! Pin
Michael Dunn2-Nov-02 14:50
sitebuilderMichael Dunn2-Nov-02 14:50 
GeneralRe: Thread in MFC DLL!!!!!!!!!!!!!!!! Pin
ian mariano2-Nov-02 15:03
ian mariano2-Nov-02 15:03 
GeneralRe: Thread in MFC DLL!!!!!!!!!!!!!!!! Pin
stevenson2-Nov-02 19:47
stevenson2-Nov-02 19:47 
GeneralRe: Thread in MFC DLL!!!!!!!!!!!!!!!! Pin
ian mariano2-Nov-02 20:28
ian mariano2-Nov-02 20:28 
GeneralShake a window.. Pin
Anonymous2-Nov-02 13:40
Anonymous2-Nov-02 13:40 
GeneralRe: Shake a window.. Pin
ian mariano2-Nov-02 14:58
ian mariano2-Nov-02 14:58 
Try smaller increments instead of a 10 pixel jump:

#define MAX_INFLATE_ITERATIONS  20
#define MAX_BOUNCE_ITERATIONS 3
#define INFLATE_INCR  2
#define INFLATE_SLEEP 5

// ...

CRect  rc;
int i, j;

pMain->GetWindowRect(&rc);

for(j = 0; j < MAX_BOUNCE_ITERATIONS; j++
{
   for(i = 1; i <= MAX_INFLATE_ITERATIONS; i++)
   {
      rc.InflateRect(-INFLATE_INCR, INFLATE_INCR);
      pMain->MoveWindow(&rc, TRUE);
      Sleep(INFLATE_SLEEP);
   }

   for(i = MAX_INFLATE_ITERATIONS; i > 0; i++)
   {
      rc.InflateRect(INFLATE_INCR, -INFLATE_INCR);
      pMain->MoveWindow(&rc, TRUE);
      Sleep(INFLATE_SLEEP);
   }
}


Of course you won't be processing any windows messages at the time Wink | ;)

"The greatest danger to humanity is humanity without an open mind."
  - Ian Mariano - http://www.ian-space.com/

GeneralRe: Shake a window.. Pin
ian mariano2-Nov-02 15:02
ian mariano2-Nov-02 15:02 
GeneralRe: Shake a window.. Pin
Anonymous2-Nov-02 15:08
Anonymous2-Nov-02 15:08 
QuestionSelecting a region into a DC? Pin
Michael Dunn2-Nov-02 12:16
sitebuilderMichael Dunn2-Nov-02 12:16 
AnswerRe: Selecting a region into a DC? Pin
Paul M Watt2-Nov-02 13:38
mentorPaul M Watt2-Nov-02 13:38 
GeneralFirst-chance Exception in C++ Runtime Pin
Roger Wright2-Nov-02 11:53
professionalRoger Wright2-Nov-02 11:53 
GeneralRe: First-chance Exception in C++ Runtime Pin
Ravi Bhavnani2-Nov-02 14:09
professionalRavi Bhavnani2-Nov-02 14:09 
GeneralRe: First-chance Exception in C++ Runtime Pin
Roger Wright2-Nov-02 18:29
professionalRoger Wright2-Nov-02 18:29 
GeneralCalendar Control Problem Pin
Anonymous2-Nov-02 11:00
Anonymous2-Nov-02 11:00 
GeneralReading binary files with c stdio fread Pin
Anonymous2-Nov-02 10:18
Anonymous2-Nov-02 10:18 
GeneralRe: Reading binary files with c stdio fread Pin
Anders Molin3-Nov-02 2:48
professionalAnders Molin3-Nov-02 2:48 
GeneralSerialization Progress Pin
Ted Christiansen2-Nov-02 9:42
Ted Christiansen2-Nov-02 9:42 
GeneralRe: Serialization Progress Pin
ian mariano2-Nov-02 9:51
ian mariano2-Nov-02 9:51 
GeneralPhilosophical question Pin
Chris Losinger2-Nov-02 9:21
professionalChris Losinger2-Nov-02 9:21 
Generallet me answer my own question... Pin
Chris Losinger2-Nov-02 9:46
professionalChris Losinger2-Nov-02 9:46 
GeneralRe: Philosophical question Pin
ian mariano2-Nov-02 9:42
ian mariano2-Nov-02 9:42 
GeneralRe: Philosophical question Pin
ColinDavies2-Nov-02 9:43
ColinDavies2-Nov-02 9:43 
GeneralRe: Philosophical question Pin
Gary R. Wheeler3-Nov-02 4:29
Gary R. Wheeler3-Nov-02 4: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.