Click here to Skip to main content
15,913,115 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to write a CString object into a file? Pin
alex.barylski22-Jan-04 22:13
alex.barylski22-Jan-04 22:13 
GeneralRe: how to write a CString object into a file? Pin
P_JAYAPRAKASH22-Jan-04 23:10
P_JAYAPRAKASH22-Jan-04 23:10 
GeneralRe: how to write a CString object into a file? Pin
alex.barylski22-Jan-04 23:19
alex.barylski22-Jan-04 23:19 
AnswerRe: how to write a CString object into a file? Pin
Abhishek Srivastava22-Jan-04 23:28
Abhishek Srivastava22-Jan-04 23:28 
GeneralRe: how to write a CString object into a file? Pin
P_JAYAPRAKASH23-Jan-04 3:05
P_JAYAPRAKASH23-Jan-04 3:05 
GeneralTransparency of an object. Pin
swarnamanoo22-Jan-04 20:52
swarnamanoo22-Jan-04 20:52 
GeneralRe: Transparency of an object. Pin
alex.barylski22-Jan-04 22:16
alex.barylski22-Jan-04 22:16 
GeneralOnQueryDragIcon Pin
monrobot1322-Jan-04 20:46
monrobot1322-Jan-04 20:46 
GeneralRe: OnQueryDragIcon Pin
Mike Dimmick23-Jan-04 0:39
Mike Dimmick23-Jan-04 0:39 
GeneralRe: OnQueryDragIcon Pin
Michael Dunn23-Jan-04 4:44
sitebuilderMichael Dunn23-Jan-04 4:44 
GeneralRe: OnQueryDragIcon Pin
monrobot1323-Jan-04 7:50
monrobot1323-Jan-04 7:50 
GeneralRe: OnQueryDragIcon Pin
Michael Dunn23-Jan-04 13:04
sitebuilderMichael Dunn23-Jan-04 13:04 
GeneralRe: OnQueryDragIcon Pin
monrobot1323-Jan-04 20:26
monrobot1323-Jan-04 20:26 
GeneralDesign question (Model-View Pin
Jerome Conus22-Jan-04 20:36
Jerome Conus22-Jan-04 20:36 
GeneralRe: Design question (Model-View Pin
CodeBrain23-Jan-04 1:29
CodeBrain23-Jan-04 1:29 
GeneralOnSetCursor and the keyboard Pin
JadziaMD22-Jan-04 18:58
JadziaMD22-Jan-04 18:58 
GeneralRe: OnSetCursor and the keyboard Pin
Burz22-Jan-04 20:24
Burz22-Jan-04 20:24 
Generalwhere can i find the latest DDK Pin
Monty222-Jan-04 18:33
Monty222-Jan-04 18:33 
GeneralRe: where can i find the latest DDK Pin
berndg22-Jan-04 20:22
berndg22-Jan-04 20:22 
GeneralRe: where can i find the latest DDK Pin
Alexander M.,23-Jan-04 10:15
Alexander M.,23-Jan-04 10:15 
GeneralRegistering Key events when minimized Pin
Tank_Aviator22-Jan-04 18:20
Tank_Aviator22-Jan-04 18:20 
GeneralVS .NET 2003 - STOP OUTLINING FOR GOOD! Pin
shultas22-Jan-04 16:50
shultas22-Jan-04 16:50 
GeneralRe: VS .NET 2003 - STOP OUTLINING FOR GOOD! Pin
Mike Dimmick23-Jan-04 0:44
Mike Dimmick23-Jan-04 0:44 
GeneralWeb Browser Control & WM_SETTINGCHANGE Pin
Jo Fredrickson22-Jan-04 14:31
Jo Fredrickson22-Jan-04 14:31 
GeneralRe: Web Browser Control & WM_SETTINGCHANGE Pin
jasonharrison16-Mar-10 8:17
jasonharrison16-Mar-10 8:17 
Hi Joanne,

Did you ever find a solution to this problem?

-Jason


joanne_fredrickson wrote:
Forum: C / C++ / MFC
Subject: Web Browser Control & WM_SETTINGCHANGE
Sender: joanne_fredrickson
Date: Thursday, January 22, 2004 5:31 PM
Hi,

My app uses an embedded web browser control. In order to print to specific printers, I change the default printer setting in the registery, and then use the following function to print the html...

ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, ...
My problem is that the web browser doesn't respond to the notification message...

SendNotifyMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)_T("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows"));
The only way I can make the web browser use the new default printer is to destroy and re-create the browser object. But this is quite slow.Sleepy

Anyone got any better ideas?

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.