Click here to Skip to main content
15,885,244 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: can anybody tell me how to read the data from a .cvs file Pin
Maximilien20-Aug-07 3:55
Maximilien20-Aug-07 3:55 
QuestionRe: can anybody tell me how to read the data from a .cvs file Pin
David Crow20-Aug-07 3:56
David Crow20-Aug-07 3:56 
AnswerRe: can anybody tell me how to read the data from a .cvs file Pin
Justin Perez20-Aug-07 3:58
Justin Perez20-Aug-07 3:58 
GeneralRe: can anybody tell me how to read the data from a .cvs file Pin
David Crow20-Aug-07 4:00
David Crow20-Aug-07 4:00 
GeneralRe: can anybody tell me how to read the data from a .cvs file Pin
Justin Perez20-Aug-07 4:01
Justin Perez20-Aug-07 4:01 
AnswerRe: can anybody tell me how to read the data from a .cvs file Pin
philiptabraham20-Aug-07 4:04
philiptabraham20-Aug-07 4:04 
QuestionRe: can anybody tell me how to read the data from a .cvs file Pin
David Crow20-Aug-07 4:07
David Crow20-Aug-07 4:07 
QuestionHow do I detect the desktop theme? Pin
cgb14320-Aug-07 3:20
cgb14320-Aug-07 3:20 
I am trying to maintain an old program that uses
///////
RECT rc;
GetWindowRect(&rc);
MoveWindow (rc.left, rc.top, rc.right-rc.left, rc.bottom-rc.top);
ScreenTo Client (&rc);
m_buttonDisable.Create("Disable",WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | WS_DISABLED,
CRect(rc.left+360+horizBtnOffset,rc.top+35+vertBtnOffset,
rc.left+430+horizBtnOffset,rc.top+65+vertBtnOffset), this, IDC_BUTTON_DISABLE);
///////
to draw Group Boxes around similarly created buttons.

It all works fine if the desktop theme is set for "Windows Classic" but if another theme (e.g. Windows XP) is selected, the thicker title bar obscures part of the text. I do not want to re-write the code as it is much more complex than the snippet shown. What I would like to do is detect the Windows desktop theme and adjust the "vertBtnOffset" to move the label.
Is this possible?
If so can you give me a guiding light?

Thanks for any help.

QuestionRe: How do I detect the desktop theme? Pin
David Crow20-Aug-07 3:58
David Crow20-Aug-07 3:58 
AnswerRe: How do I detect the desktop theme? Pin
cgb14320-Aug-07 4:07
cgb14320-Aug-07 4:07 
GeneralRe: How do I detect the desktop theme? Pin
David Crow20-Aug-07 4:11
David Crow20-Aug-07 4:11 
QuestionError on InternetOpen() Pin
GauranG Shah20-Aug-07 2:53
GauranG Shah20-Aug-07 2:53 
AnswerRe: Error on InternetOpen() Pin
prasad_som20-Aug-07 2:54
prasad_som20-Aug-07 2:54 
Questiongenerating the lib Pin
Jerome Conus20-Aug-07 2:01
Jerome Conus20-Aug-07 2:01 
AnswerRe: generating the lib Pin
prasad_som20-Aug-07 2:36
prasad_som20-Aug-07 2:36 
QuestionWeb services using VC++ without IIS. Pin
gokhalej20-Aug-07 1:44
gokhalej20-Aug-07 1:44 
AnswerRe: Web services using VC++ without IIS. Pin
jhwurmbach20-Aug-07 1:55
jhwurmbach20-Aug-07 1:55 
QuestionButton Style Pin
baerten20-Aug-07 1:01
baerten20-Aug-07 1:01 
AnswerRe: Button Style Pin
KarstenK20-Aug-07 1:23
mveKarstenK20-Aug-07 1:23 
GeneralRe: Button Style Pin
baerten20-Aug-07 2:10
baerten20-Aug-07 2:10 
GeneralRe: Button Style Pin
KarstenK20-Aug-07 2:45
mveKarstenK20-Aug-07 2:45 
GeneralRe: Button Style Pin
baerten20-Aug-07 2:51
baerten20-Aug-07 2:51 
AnswerRe: Button Style Pin
Russell'20-Aug-07 1:44
Russell'20-Aug-07 1:44 
Jokeresolved Pin
baerten20-Aug-07 2:13
baerten20-Aug-07 2:13 
QuestionWindow with Transparent holes Pin
HakunaMatada20-Aug-07 0:01
HakunaMatada20-Aug-07 0:01 

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.