Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC CRecordset ODBC Access Rights Pin
Alberto Zanetti10-Sep-02 5:39
Alberto Zanetti10-Sep-02 5:39 
GeneralDialog CStatic update problem Pin
simbakid10-Sep-02 5:11
simbakid10-Sep-02 5:11 
GeneralRe: Dialog CStatic update problem Pin
Pavel Klocek10-Sep-02 5:33
Pavel Klocek10-Sep-02 5:33 
GeneralRe: Dialog CStatic update problem Pin
simbakid10-Sep-02 22:29
simbakid10-Sep-02 22:29 
GeneralRe: Dialog CStatic update problem Pin
simbakid11-Sep-02 0:55
simbakid11-Sep-02 0:55 
GeneralRe: Dialog CStatic update problem Pin
Pavel Klocek11-Sep-02 1:31
Pavel Klocek11-Sep-02 1:31 
GeneralTo make a Round Shape window in MFC Pin
Inam10-Sep-02 5:06
Inam10-Sep-02 5:06 
GeneralRe: To make a Round Shape window in MFC Pin
Paul M Watt10-Sep-02 5:11
mentorPaul M Watt10-Sep-02 5:11 
In your OnCreate handler create a round region then call SetWindowRgn to change the shape of the window like this.

RECT rWindow;
GetWindowRect(&rWindow);
HRGN hRgn = :: Create EllipticRgnIndirect(&rWindow);
::SetWindowRgn(hRgn, TRUE);

You do not need to delete the region that is selected into the SetWindowRgn because windows takes ownership of that region. You should not use that region at all after you call that function.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralUsing GDI Pin
Zayax10-Sep-02 4:46
Zayax10-Sep-02 4:46 
GeneralRe: Using GDI Pin
Pavel Klocek10-Sep-02 4:57
Pavel Klocek10-Sep-02 4:57 
GeneralRe: Using GDI Pin
Paul M Watt10-Sep-02 5:07
mentorPaul M Watt10-Sep-02 5:07 
GeneralRe: Using GDI Pin
Zayax10-Sep-02 5:16
Zayax10-Sep-02 5:16 
GeneralRe: Using GDI Pin
Paul M Watt10-Sep-02 5:17
mentorPaul M Watt10-Sep-02 5:17 
GeneralRe: Using GDI Pin
Zayax10-Sep-02 5:30
Zayax10-Sep-02 5:30 
GeneralRe: Using GDI Pin
Paul M Watt10-Sep-02 5:53
mentorPaul M Watt10-Sep-02 5:53 
GeneralWarning: skipping non-radio button in group. Pin
jimNLX10-Sep-02 3:53
jimNLX10-Sep-02 3:53 
GeneralRe: Warning: skipping non-radio button in group. Pin
Pavel Klocek10-Sep-02 4:00
Pavel Klocek10-Sep-02 4:00 
GeneralRe: Warning: skipping non-radio button in group. Pin
jimNLX10-Sep-02 4:13
jimNLX10-Sep-02 4:13 
GeneralRe: Warning: skipping non-radio button in group. Pin
Gary R. Wheeler11-Sep-02 14:49
Gary R. Wheeler11-Sep-02 14:49 
Generalclipping Pin
real name10-Sep-02 3:33
sussreal name10-Sep-02 3:33 
GeneralRe: clipping Pin
YoSilver10-Sep-02 6:02
YoSilver10-Sep-02 6:02 
GeneralRe: clipping Pin
real name10-Sep-02 20:07
sussreal name10-Sep-02 20:07 
Generalsolved Pin
real name10-Sep-02 22:12
sussreal name10-Sep-02 22:12 
GeneralNetwork Notifications Pin
Steve Thresher10-Sep-02 2:58
Steve Thresher10-Sep-02 2:58 
GeneralRe: Network Notifications Pin
Alwin7510-Sep-02 3:40
Alwin7510-Sep-02 3:40 

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.