Click here to Skip to main content
15,920,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Showing memory contents into a HTMLView? Pin
J Patel4-Dec-02 8:09
J Patel4-Dec-02 8:09 
GeneralRe: Showing memory contents into a HTMLView? Pin
Ravi Bhavnani4-Dec-02 10:38
professionalRavi Bhavnani4-Dec-02 10:38 
GeneralRe: Showing memory contents into a HTMLView? Pin
J Patel4-Dec-02 10:47
J Patel4-Dec-02 10:47 
GeneralRe: Showing memory contents into a HTMLView? Pin
Ravi Bhavnani4-Dec-02 11:58
professionalRavi Bhavnani4-Dec-02 11:58 
GeneralRe: Showing memory contents into a HTMLView? Pin
Joan M4-Dec-02 20:46
professionalJoan M4-Dec-02 20:46 
GeneralRe: Showing memory contents into a HTMLView? Pin
J Patel5-Dec-02 4:00
J Patel5-Dec-02 4:00 
AnswerRe: Showing memory contents into a HTMLView? Pin
David Salter4-Dec-02 12:12
David Salter4-Dec-02 12:12 
GeneralControl not showing immediately Pin
Brigg Thorp4-Dec-02 1:19
Brigg Thorp4-Dec-02 1:19 
Hello all...

I am having a problem with the animation control on a dialog. In my
WM_INITDIALOG handler, I have the following code:

<br />
case WM_INITDIALOG:<br />
  hAnim = CreateAnimationCtrl(hDlg, IDC_ANIMATE);<br />
  Animate_Play(hAnim, 0, -1, -1); <br />
  RedrawWindow(hDlg, NULL, NULL, RDW_INVALIDATE | RDW_ERASE |<br />
RDW_UPDATENOW | RDW_ALLCHILDREN);<br />
<br />
  RECT rect;<br />
  GetClientRect(hAnim, &rect); <br />
  InvalidateRect(hAnim, &rect, FALSE);<br />
<br />
  SetTimer(hDlg, 1, 350, NULL);<br />
<br />
  etc...<br />


In the timer event, I have the following code:

<br />
case WM_TIMER:<br />
  KillTimer(hDlg, 1);<br />
  SetTimer(hDlg, 1, 20, NULL);<br />
  theMain.m_nErrCode = theMain.m_lpDevice->Communicate(hDlg,<br />
&bPercent, &wPacketCount, szStatus);<br />
<br />
  etc...<br />


As you can see, I am running a communcation routine that is sending
data through the USB port using an HID driver and standard WriteFile
calls. However, when the dialog first loads up, sometimes, not all the
time, the animation will not show up immediately. I'm trying to make a
dialog like the Windows Explorer dialog shown during a long copy
operation. Is there anything that I can do to make sure that the
animation is up before running the communication?


Brigg Thorp
Software Engineer
Timex Corporation
QuestionBitBlt not working? Pin
S O S4-Dec-02 0:38
S O S4-Dec-02 0:38 
AnswerRe: BitBlt not working? Pin
Christian Graus4-Dec-02 0:43
protectorChristian Graus4-Dec-02 0:43 
GeneralRe: BitBlt not working? Pin
S O S4-Dec-02 5:22
S O S4-Dec-02 5:22 
GeneralRe: BitBlt not working? Pin
KaЯl4-Dec-02 5:30
KaЯl4-Dec-02 5:30 
GeneralRe: BitBlt not working? Pin
S O S4-Dec-02 5:50
S O S4-Dec-02 5:50 
GeneralRe: BitBlt not working? Pin
KaЯl4-Dec-02 6:03
KaЯl4-Dec-02 6:03 
GeneralRe: BitBlt not working? Pin
S O S4-Dec-02 7:46
S O S4-Dec-02 7:46 
GeneralRe: BitBlt not working? Pin
KaЯl4-Dec-02 13:35
KaЯl4-Dec-02 13:35 
GeneralRepaint slider channel Pin
Neha3-Dec-02 23:46
Neha3-Dec-02 23:46 
GeneralRe: Repaint slider channel Pin
KaЯl3-Dec-02 23:58
KaЯl3-Dec-02 23:58 
GeneralRe: MyListCtrl.SetSelectionMark doesn't call OnItemChangedLCtrl(...) Pin
MFC is the Best4-Dec-02 0:15
MFC is the Best4-Dec-02 0:15 
Generaltext from edit to list box Pin
xxhimanshu3-Dec-02 23:21
xxhimanshu3-Dec-02 23:21 
GeneralRe: text from edit to list box Pin
Michael P Butler3-Dec-02 23:48
Michael P Butler3-Dec-02 23:48 
GeneralRe: text from edit to list box Pin
Joan M3-Dec-02 23:54
professionalJoan M3-Dec-02 23:54 
GeneralRe: text from edit to list box Pin
xxhimanshu4-Dec-02 0:06
xxhimanshu4-Dec-02 0:06 
GeneralProblems with data conversion Pin
Gian3-Dec-02 22:57
Gian3-Dec-02 22:57 
GeneralRe: Problems with data conversion Pin
Hans Ruck4-Dec-02 0:50
Hans Ruck4-Dec-02 0:50 

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.