Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Popup Window Problem

$
0
0

Problem:

In MFC application on Windows 7, we call windows API CreateProcess() to execute following command,

"\"C:\\Windows\\System32\\runas.exe\" \"/user:Tom\" \"/savecred\" \"cmd /c start /MIN /b\\\"abc\\\" Notepad.exe" 

This command invokes 2 pop-up dos windows. We need to run above command in silent mode i.e, without popup windows.

Popping of these dos windows seems unavoidable, so we hide these dos windows on popping.

Issue is with “Windows Aero” theme above works, and with “Windows classic”(Non-Aero) theme dos windows hides but re-paint issue comes.

After investigation we found following by Microsoft,

http://blogs.msdn.com/b/dsvc/archive/2013/01/30/mfc-app-main-window-activation-deactivation-painting-issue.aspx

Any help/comment to words this painting issue is welcome.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>