Click here to Skip to main content
15,894,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson19-Sep-09 7:25
professionalStuart Dootson19-Sep-09 7:25 
GeneralRe: some questions about "reference to pointer" Pin
CPallini19-Sep-09 22:06
mveCPallini19-Sep-09 22:06 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson19-Sep-09 22:15
professionalStuart Dootson19-Sep-09 22:15 
QuestionDISP_E_UNKNOWNNAME Pin
Mohanraj D18-Sep-09 3:20
Mohanraj D18-Sep-09 3:20 
AnswerRe: DISP_E_UNKNOWNNAME Pin
Stuart Dootson18-Sep-09 3:25
professionalStuart Dootson18-Sep-09 3:25 
AnswerRe: DISP_E_UNKNOWNNAME Pin
CPallini18-Sep-09 3:30
mveCPallini18-Sep-09 3:30 
QuestionHow to use ShellStyle.dll in MFC Application Pin
themilan18-Sep-09 2:37
themilan18-Sep-09 2:37 
AnswerRe: How to use ShellStyle.dll in MFC Application Pin
enhzflep18-Sep-09 5:19
enhzflep18-Sep-09 5:19 
Howdy,

I've never seen any mention of specifying a different DLL file to be used by windows to draw your app.
I've seen instances of people using the DrawThemeXXXXXXXX() functions found in uxtheme.h & UxTheme.dll,
though have never been able to see a possible way to load your own theme data.

Reading from "http://msdn.microsoft.com/en-us/library/bb762202(VS.85).aspx": SHGetShellStyleHInstance first attempts to load the version of Shellstyle.dll from the current active visual style. If that is unsuccessful, the version stored in the System32 directory is used.(EDIT: however, that function is deprecated after winXP sp2, so that rules out placing a hook on the function and returning a handle to your own DLL) D'Oh! | :doh:


In short, the only way I've ever themed applications is myself, the hard-way. I.e define all of the bitmaps to be used for your window edges/features/controls etc and then code in the rules that define how they'll be applied (think about the 'behaviour' of WMP11 as it's resized)

Of course, you could just search for one of the many styling libraries out there. There's a great one floating around here somewhere. I think it's called the StyleToolkit by (Darren Sessions)
Here: 'ave a look at this: http://www.codeproject.com/KB/GDI-plus/Style_Toolkit.aspx
QuestionRe: How to use ShellStyle.dll in MFC Application Pin
themilan18-Sep-09 20:43
themilan18-Sep-09 20:43 
QuestionAdding 2 double datat types Pin
dipuks18-Sep-09 2:35
dipuks18-Sep-09 2:35 
AnswerRe: Adding 2 double datat types [modified] Pin
Code-o-mat18-Sep-09 2:39
Code-o-mat18-Sep-09 2:39 
GeneralRe: Adding 2 double datat types Pin
dipuks18-Sep-09 3:10
dipuks18-Sep-09 3:10 
GeneralRe: Adding 2 double datat types Pin
Code-o-mat18-Sep-09 3:19
Code-o-mat18-Sep-09 3:19 
GeneralRe: Adding 2 double datat types Pin
dipuks18-Sep-09 6:11
dipuks18-Sep-09 6:11 
QuestionRe: Adding 2 double datat types Pin
David Crow18-Sep-09 6:55
David Crow18-Sep-09 6:55 
Questiondownload Netapi32.lib Pin
ranjithgoud18-Sep-09 1:55
ranjithgoud18-Sep-09 1:55 
AnswerRe: download Netapi32.lib Pin
Cedric Moonen18-Sep-09 2:12
Cedric Moonen18-Sep-09 2:12 
GeneralRe: download Netapi32.lib Pin
ranjithgoud18-Sep-09 2:14
ranjithgoud18-Sep-09 2:14 
GeneralRe: download Netapi32.lib Pin
Rajesh R Subramanian18-Sep-09 2:24
professionalRajesh R Subramanian18-Sep-09 2:24 
AnswerRe: download Netapi32.lib Pin
Naveen18-Sep-09 2:23
Naveen18-Sep-09 2:23 
GeneralRe: download Netapi32.lib Pin
Rajesh R Subramanian18-Sep-09 2:27
professionalRajesh R Subramanian18-Sep-09 2:27 
GeneralRe: download Netapi32.lib Pin
Naveen18-Sep-09 2:37
Naveen18-Sep-09 2:37 
GeneralRe: download Netapi32.lib Pin
ranjithgoud18-Sep-09 2:40
ranjithgoud18-Sep-09 2:40 
GeneralRe: download Netapi32.lib Pin
ranjithgoud18-Sep-09 3:14
ranjithgoud18-Sep-09 3:14 
QuestionRe: download Netapi32.lib Pin
David Crow18-Sep-09 6:23
David Crow18-Sep-09 6:23 

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.