Click here to Skip to main content
16,006,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog Box question Pin
Pett4-Nov-02 5:03
Pett4-Nov-02 5:03 
GeneralRe: Dialog Box question Pin
jhwurmbach4-Nov-02 4:54
jhwurmbach4-Nov-02 4:54 
GeneralRe: Dialog Box question-- Thank you! Pin
Pett4-Nov-02 5:05
Pett4-Nov-02 5:05 
GeneralPlease help with Web Browser Pin
rrrado4-Nov-02 2:13
rrrado4-Nov-02 2:13 
GeneralCAnimateCtrl Pin
Marcus7774-Nov-02 2:10
sussMarcus7774-Nov-02 2:10 
GeneralResponding to WM Messages in a DLL Pin
Brigg Thorp4-Nov-02 1:48
Brigg Thorp4-Nov-02 1:48 
GeneralRe: Responding to WM Messages in a DLL Pin
Andreas Saurwein4-Nov-02 6:47
Andreas Saurwein4-Nov-02 6:47 
GeneralRe: Responding to WM Messages in a DLL Pin
Brigg Thorp4-Nov-02 7:53
Brigg Thorp4-Nov-02 7:53 
I was actually able to get it to work by calling SetTimer before I start communication. I use a callback for the timer event instead of a Windows message which gets fired every time the timer expires. I do the following when the API is called in the DLL from the user's application:

SetTimer(hWnd, IDT_TIMER1, TIMER_INTERVAL, (TIMERPROC)HiddenSendDataProc);
MSG msg;          // message structure
while (GetMessage(&msg, // message structure
       NULL,           // handle to window to receive the message
       NULL,           // lowest message to examine
       NULL)          // highest message to examine
          != 0 && GetMessage(&msg, NULL, NULL, NULL) != -1)
  {
    // Post WM_TIMER messages to the hwndTimer procedure.
    if (msg.message == WM_TIMER)
    {
      msg.hwnd = hWnd;
      HiddenSendDataProc(hWnd, WM_TIMER, 0, 0);
    }
    TranslateMessage(&msg); // translates virtual-key codes
    DispatchMessage(&msg);  // dispatches message to window
  }


It works!


Brigg Thorp
Software Engineer
Timex Corporation
GeneralChange the background color of a static text control Pin
Daniel Strigl4-Nov-02 1:24
Daniel Strigl4-Nov-02 1:24 
GeneralRe: Change the background color of a static text control Pin
Michael P Butler4-Nov-02 1:46
Michael P Butler4-Nov-02 1:46 
GeneralSemaphore wait and signal!!!! Pin
tongc4-Nov-02 1:13
tongc4-Nov-02 1:13 
GeneralRe: Semaphore wait and signal!!!! Pin
Gary Wheeler4-Nov-02 7:33
Gary Wheeler4-Nov-02 7:33 
QuestionCListCtrl Focus??? Pin
Daniel Strigl4-Nov-02 1:02
Daniel Strigl4-Nov-02 1:02 
AnswerRe: CListCtrl Focus??? Pin
Andreas Saurwein4-Nov-02 6:49
Andreas Saurwein4-Nov-02 6:49 
Questionshared memory between processes?? Pin
Anonymous4-Nov-02 1:01
Anonymous4-Nov-02 1:01 
AnswerRe: shared memory between processes?? Pin
Paul M Watt4-Nov-02 5:24
mentorPaul M Watt4-Nov-02 5:24 
AnswerRe: shared memory between processes?? Pin
ian mariano4-Nov-02 7:31
ian mariano4-Nov-02 7:31 
QuestionWhat reports can use in VC instead of Crystal? Pin
LaFlour4-Nov-02 0:56
LaFlour4-Nov-02 0:56 
Generalallowable instruction in kernel mode!! Pin
Anonymous4-Nov-02 0:44
Anonymous4-Nov-02 0:44 
GeneralRe: allowable instruction in kernel mode!! Pin
Paul M Watt4-Nov-02 5:27
mentorPaul M Watt4-Nov-02 5:27 
QuestionHow Can I Set Items' Images of Toolbar Pin
IMiracle4-Nov-02 0:39
IMiracle4-Nov-02 0:39 
AnswerRe: How Can I Set Items' Images of Toolbar Pin
viliam4-Nov-02 0:55
viliam4-Nov-02 0:55 
GeneralRe: How Can I Set Items' Images of Toolbar Pin
IMiracle4-Nov-02 1:03
IMiracle4-Nov-02 1:03 
General"multi-master" Pin
Anonymous4-Nov-02 0:41
Anonymous4-Nov-02 0:41 
GeneralRe: "multi-master" Pin
Maximilien4-Nov-02 2:52
Maximilien4-Nov-02 2:52 

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.