Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Activex control

Activex control

Scheduled Pinned Locked Moved C / C++ / MFC
c++comsysadminhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sunita ramesh
    wrote on last edited by
    #1

    Hello all, I have an Activex Control in vc++ 6.0.It is a player plays cam files. I have designed in the way that everytime the Activex control opens ,cam file will be downloaded from the server(Download Dialog) and after downloading the download dialog is closed automatically using OnThreadFinished. LRESULT CHttpDownloadDlg::OnThreadFinished(WPARAM wParam, LPARAM /*lParam*/) { m_bSafeToClose = TRUE; m_ctrlAnimate.Stop(); if (m_bAbort) EndDialog(IDCANCEL); else if (wParam) { AfxMessageBox(m_sError); EndDialog(IDCANCEL); } else EndDialog(IDOK); return 0L; } OnThreadFinished is for closing the dialog after the cam file downloads fully. 1.Is ther any method to close the dialog while downloading the file. Help me please and give me ur suggestions. thanks in advance Sunita

    A 1 Reply Last reply
    0
    • S sunita ramesh

      Hello all, I have an Activex Control in vc++ 6.0.It is a player plays cam files. I have designed in the way that everytime the Activex control opens ,cam file will be downloaded from the server(Download Dialog) and after downloading the download dialog is closed automatically using OnThreadFinished. LRESULT CHttpDownloadDlg::OnThreadFinished(WPARAM wParam, LPARAM /*lParam*/) { m_bSafeToClose = TRUE; m_ctrlAnimate.Stop(); if (m_bAbort) EndDialog(IDCANCEL); else if (wParam) { AfxMessageBox(m_sError); EndDialog(IDCANCEL); } else EndDialog(IDOK); return 0L; } OnThreadFinished is for closing the dialog after the cam file downloads fully. 1.Is ther any method to close the dialog while downloading the file. Help me please and give me ur suggestions. thanks in advance Sunita

      A Offline
      A Offline
      Anilkumar K V
      wrote on last edited by
      #2

      Create a dialog having a progress bar. In Its OnInitDialog start a thread to update the progress bar. Set the progress bar initalizations in OnInitDialog. The thread fun must have a infinite loop and setPos fun to update the progress bar. From downloading thread update the progress bar value using a static variable and use this var to update the bar in Thred fun() and when this value become 100 or like u can call end dialog which will close the progress dialog.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups