Click here to Skip to main content
16,011,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Opening a file of any type using the proper program Pin
RChin3-Dec-03 7:38
RChin3-Dec-03 7:38 
GeneralRe: Opening a file of any type using the proper program Pin
Anonymous3-Dec-03 5:59
Anonymous3-Dec-03 5:59 
GeneralRe: Opening a file of any type using the proper program Pin
valikac3-Dec-03 6:26
valikac3-Dec-03 6:26 
GeneralRe: Opening a file of any type using the proper program Pin
Michael Dunn3-Dec-03 12:58
sitebuilderMichael Dunn3-Dec-03 12:58 
GeneralRight align toolbar Pin
Anonymous3-Dec-03 4:10
Anonymous3-Dec-03 4:10 
Generalcapture program Pin
styve3-Dec-03 3:38
styve3-Dec-03 3:38 
GeneralRe: capture program Pin
Iain Clarke, Warrior Programmer3-Dec-03 5:19
Iain Clarke, Warrior Programmer3-Dec-03 5:19 
QuestionHow to set internet explorer options in code Pin
Salvador Dali3-Dec-03 3:30
Salvador Dali3-Dec-03 3:30 
I am using a web browser control (actually the CHtmlStatic class found
in codeproject, but it's the same) to display some html and at some
point in my html document I have a button that calls window.print().
The problem is, if the option to print background colors and images
is not true in internet explorer's settings, my document will not print well.
So I need a way to get the registry key associated with that option
prior to displaying the html page, set it to true, show the page and
then set it back to the original value on return.
I have found the key:
HKEY_USERS\...(numbers ommited)...\Software\Microsoft\Internet Explorer\Main\Print_Background
which is probably the per user option, but how do I get and set it
at runtime?

Thanks in advance.

Have no fear of perfection - You will never reach it

AnswerRe: How to set internet explorer options in code Pin
Iain Clarke, Warrior Programmer3-Dec-03 5:23
Iain Clarke, Warrior Programmer3-Dec-03 5:23 
GeneralRe: How to set internet explorer options in code Pin
Salvador Dali3-Dec-03 9:37
Salvador Dali3-Dec-03 9:37 
GeneralRe: How to set internet explorer options in code Pin
Iain Clarke, Warrior Programmer3-Dec-03 12:39
Iain Clarke, Warrior Programmer3-Dec-03 12:39 
GeneralRe: How to set internet explorer options in code Pin
Salvador Dali3-Dec-03 22:09
Salvador Dali3-Dec-03 22:09 
Generalet voila! Pin
Salvador Dali3-Dec-03 23:34
Salvador Dali3-Dec-03 23:34 
AnswerRe: How to set internet explorer options in code Pin
Peter Molnar3-Dec-03 14:26
Peter Molnar3-Dec-03 14:26 
GeneralRe: How to set internet explorer options in code Pin
Salvador Dali3-Dec-03 22:13
Salvador Dali3-Dec-03 22:13 
GeneralProblem with pTreectrl->Create(...); Pin
bilas3-Dec-03 2:33
bilas3-Dec-03 2:33 
GeneralRe: Problem with pTreectrl->Create(...); Pin
Jörgen Sigvardsson3-Dec-03 2:40
Jörgen Sigvardsson3-Dec-03 2:40 
GeneralRe: Problem with pTreectrl->Create(...); Pin
Antti Keskinen3-Dec-03 2:52
Antti Keskinen3-Dec-03 2:52 
GeneralRe: Problem with pTreectrl->Create(...); Pin
bilas3-Dec-03 3:40
bilas3-Dec-03 3:40 
GeneralRe: Problem with pTreectrl->Create(...); Pin
RChin3-Dec-03 5:14
RChin3-Dec-03 5:14 
GeneralRe: Problem with pTreectrl->Create(...); Pin
Antti Keskinen3-Dec-03 5:28
Antti Keskinen3-Dec-03 5:28 
GeneralRe: Problem with pTreectrl->Create(...); Pin
bilas3-Dec-03 10:11
bilas3-Dec-03 10:11 
GeneralGetting the Current Application Path Pin
harinat3-Dec-03 2:06
harinat3-Dec-03 2:06 
GeneralRe: Getting the Current Application Path Pin
Antti Keskinen3-Dec-03 2:21
Antti Keskinen3-Dec-03 2:21 
GeneralRe: Getting the Current Application Path Pin
David Crow3-Dec-03 3:14
David Crow3-Dec-03 3:14 

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.