Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Possible to use common controls (progress bar) in network provider DLL?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gbrow...@gmail.com  
View profile  
 More options Jan 17 2006, 10:45 pm
Newsgroups: microsoft.public.win32.programmer.ui, microsoft.public.win32.programmer.kernel, comp.os.ms-windows.programmer.win32
From: gbrow...@gmail.com
Date: 17 Jan 2006 19:45:56 -0800
Local: Tues, Jan 17 2006 10:45 pm
Subject: Possible to use common controls (progress bar) in network provider DLL?
I'm trying to display a progress bar after a Ctrl-Alt-Del passsword
change using non-MFC dialogs, but the UI locks up while displaying
child dialogs shortly there after on roughly half of the XP machines
I've tested on.  The same child dialogs work fine when the progress
dialog isn't displayed.  Anyone know of any gotchas using comctl32 from
a system process?  Here's the code that displays the progress dialog:

=================================
/* Initializing the dialog */
INITCOMMONCONTROLSEX InitCtrlEx;
InitCtrlEx.dwSize = sizeof(INITCOMMONCONTROLSEX);
InitCtrlEx.dwICC  = ICC_PROGRESS_CLASS;
InitCommonControlsEx(&InitCtrlEx);

HWND hProgressWnd = CreateDialogParam(hInstance,
MAKEINTRESOURCE(IDD_PROGRESS), GetTopWindow(0),
(DLGPROC)ProgressDlgProc, NULL);

ShowWindow(hProgressWnd, SW_SHOWNORMAL);
UpdateWindow(hProgressWnd);
=================================
/* Window proc */
BOOL CALLBACK ProgressDlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam,
LPARAM lParam) {
   switch(Msg) {
   case WM_INITDIALOG:
      SendDlgItemMessage(hWndDlg, IDC_PROGRESS, PBM_SETSTEP, (WPARAM)
1, 0);
      SendDlgItemMessage(hWndDlg, IDC_PROGRESS, PBM_SETRANGE, 0,
MAKELPARAM(0, 5));
      return TRUE;

   case WM_COMMAND:
      switch(wParam) {
      case IDOK:
         EndDialog(hWndDlg, 0);
         return TRUE;
      }
      break;
   }
   return FALSE;

}

=================================
/* How the dialog is updated */
SendDlgItemMessage(hProgressWnd, IDC_PROGRESS, PBM_STEPIT, 0, 0);
UpdateWindow(hProgressWnd);
=================================

   -Gregg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.