Click here to Skip to main content
16,014,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Dialog question Pin
Tom Wright8-Mar-04 9:04
Tom Wright8-Mar-04 9:04 
GeneralConcatenation of two LPSTR Pin
__Cerb8-Mar-04 6:55
__Cerb8-Mar-04 6:55 
GeneralRe: Concatenation of two LPSTR Pin
antlers8-Mar-04 7:18
antlers8-Mar-04 7:18 
GeneralRe: Concatenation of two LPSTR Pin
Anonymous8-Mar-04 8:20
Anonymous8-Mar-04 8:20 
GeneralRe: Concatenation of two LPSTR Pin
Michael Dunn8-Mar-04 10:02
sitebuilderMichael Dunn8-Mar-04 10:02 
GeneralRe: Concatenation of two LPSTR Pin
chpsoft8-Mar-04 21:35
chpsoft8-Mar-04 21:35 
Generalvc++ help Pin
brianfm8-Mar-04 6:08
brianfm8-Mar-04 6:08 
GeneralWindow Styles Pin
monrobot138-Mar-04 4:18
monrobot138-Mar-04 4:18 
Two questions here. Question the first: I have a dialog app and on it I have a group box with a radio button over it's heading. The reason I'm doing this is because I want it to enable the controls in the groupbox when the radio is pressed, and I'd like it to look like the radio and groupbox are one control. The problem I'm encoutering is that the radio always appears "behind" the groupbox so there is a line through it. When the radio is clicked it's drawn properly so the first thing I tried doing is setting the focus to it when the dialog was enabled, that didn't really work. So my question is how would I get the radio to show on top of the groupbox?

Question the second: I saw a post on here a couple days ago with what appeared to be a similar question and the person was directed to look at WS_CLIPSIBLINGS so I did that as well. It seems like that's what I want so I tried this code to change the style of that radio button:
HWND hStyle = GetDlgItem (IDC_CLOSED_IN_RANGE_CLEC)->GetSafeHwnd ();
	LONG lStyle = ::GetWindowLong (hStyle, GWL_STYLE);
	lStyle |= WS_CLIPSIBLINGS;
	::SetWindowLong (hStyle, GWL_STYLE, lStyle);
It didn't work so really my second question is is WS_CLIPSIBLINGS the right thing for what I want and is that code above even close to how the style of a window should be changed?

Any and all help is appreciated.

- Aaron
GeneralRe: Window Styles Pin
Steve S8-Mar-04 4:38
Steve S8-Mar-04 4:38 
GeneralRe: Window Styles Pin
monrobot138-Mar-04 6:07
monrobot138-Mar-04 6:07 
GeneralRe: Window Styles Pin
Anonymous8-Mar-04 5:54
Anonymous8-Mar-04 5:54 
GeneralRe: Window Styles Pin
monrobot138-Mar-04 6:08
monrobot138-Mar-04 6:08 
GeneralRe: Window Styles Pin
Michael Dunn8-Mar-04 10:04
sitebuilderMichael Dunn8-Mar-04 10:04 
Generalsize of dll vs exe Pin
GDavy8-Mar-04 3:27
GDavy8-Mar-04 3:27 
GeneralRe: size of dll vs exe Pin
Iain Clarke, Warrior Programmer8-Mar-04 3:44
Iain Clarke, Warrior Programmer8-Mar-04 3:44 
GeneralRe: size of dll vs exe Pin
Prakash Nadar8-Mar-04 4:08
Prakash Nadar8-Mar-04 4:08 
GeneralRe: size of dll vs exe Pin
GDavy8-Mar-04 19:23
GDavy8-Mar-04 19:23 
GeneralGIF decoding Pin
jk chan8-Mar-04 2:58
jk chan8-Mar-04 2:58 
QuestionRead/Write to Ms Excel and Access using MFC? Pin
Mehdi_Hosseinpour8-Mar-04 2:49
Mehdi_Hosseinpour8-Mar-04 2:49 
AnswerRe: Read/Write to Ms Excel and Access using MFC? Pin
David Crow8-Mar-04 3:56
David Crow8-Mar-04 3:56 
General'type cast' warning Pin
si_698-Mar-04 2:18
si_698-Mar-04 2:18 
GeneralRe: 'type cast' warning Pin
Prakash Nadar8-Mar-04 2:28
Prakash Nadar8-Mar-04 2:28 
GeneralRe: 'type cast' warning Pin
John M. Drescher8-Mar-04 8:18
John M. Drescher8-Mar-04 8:18 
GeneralRe: 'type cast' warning Pin
Prakash Nadar8-Mar-04 16:00
Prakash Nadar8-Mar-04 16:00 
GeneralRe: 'type cast' warning Pin
RChin8-Mar-04 2:29
RChin8-Mar-04 2:29 

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.