This appears to work..
theApp.WriteProfileBinary( _T("ExportSettings"),
_T("GeneralFont"),
(LPBYTE)&(sSettings.lfGeneralFont),
sizeof(LOGFONT) );
Now I have to raed it back again...
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Paul Grenyer
> Sent: 29 March 2005 12:05
> To: [email protected]
> Subject: Re: [msvc] Logfont and registry
>
>
> Hi
>
> > Can I read and write a logfont OK to/from registry using
> WriteProfileBinary
> > etc..??
>
> Have you tried? :-D
>
> Regards
> Paul
>
> Paul Grenyer
> email: [EMAIL PROTECTED]
> web: http://www.paulgrenyer.co.uk
> articles: http://www.paulgrenyer.dyndns.org/articles/
>
> I'm not evil, I'm just good looking...
>
>
> _______________________________________________
> msvc mailing list
> [email protected]
> See
> http://beginthread.com/mailman/listinfo/msvc_beginthread.com
> for subscription changes, and list archive.
>
>
> This message has been scanned for viruses by MailControl -
> (see http://bluepages.wsatkins.co.uk/?4318150)
>
This email and any attached files are confidential and copyright protected.
If you are not the addressee, any dissemination of this communication is
strictly prohibited. Unless otherwise expressly agreed in writing, nothing
stated in this communication shall be legally binding.
_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.