Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: std:string Pin
Mike Nordell19-Aug-02 1:14
Mike Nordell19-Aug-02 1:14 
QuestionPlease help. How do i use acmFormatEnum? Pin
redeemer16-Aug-02 1:45
redeemer16-Aug-02 1:45 
AnswerRe: Please help. How do i use acmFormatEnum? Pin
Mike Nordell18-Aug-02 0:40
Mike Nordell18-Aug-02 0:40 
GeneralActiveX Control Whithin HTMLView Pin
Jawache16-Aug-02 1:05
Jawache16-Aug-02 1:05 
GeneralRe: ActiveX Control Whithin HTMLView Pin
Stephane Rodriguez.16-Aug-02 2:17
Stephane Rodriguez.16-Aug-02 2:17 
GeneralCutout window (creating a "hole") Pin
kb16-Aug-02 1:06
kb16-Aug-02 1:06 
GeneralRe: Cutout window (creating a "hole") Pin
mishgun16-Aug-02 2:08
mishgun16-Aug-02 2:08 
GeneralRe: Cutout window (creating a "hole") Pin
kb16-Aug-02 4:22
kb16-Aug-02 4:22 
Hi, many thanks for your reply.

I tried the rgn method, and finally got this code working:

hOrgRgn=CreateRectRgn(0,0,0,0);
GetWindowRgn(hWnd, hOrgRgn);
hRectRgn = CreateRectRgn(50, 10, 200, 200);

hResultRgn=CreateRectRgn(0,0,0,0);

CombineRgn(hResultRgn, hOrgRgn, hRectRgn, RGN_XOR);//RGN_DIFF); //rgn_diff makes no difference

SetWindowRgn(hWnd, hResultRgn,TRUE);

But unfortunately, this does exactly the *opposite* of what I want. This cuts out a square from the middle of the window, but it only shows the cut out square and not the rest of the window; I want to show the window with a square hole in the middle. I've tried swapping around "hOrgRgn" and "hRectRgn" in CombineRgn(), but it makes no difference.

Does anybody have any suggestions?

Again, many thanks,
Keith
GeneralRe: Cutout window (creating a "hole") Pin
mishgun17-Aug-02 0:03
mishgun17-Aug-02 0:03 
GeneralNeed to uncheck "Read Only" for files, and show ClassView layout. Pin
WREY16-Aug-02 0:04
WREY16-Aug-02 0:04 
GeneralRe: Need to uncheck "Read Only" for files, and show ClassView layout. Pin
-Dy16-Aug-02 0:44
-Dy16-Aug-02 0:44 
GeneralNeed Advice Pin
Zayax15-Aug-02 23:39
Zayax15-Aug-02 23:39 
GeneralRe: Need Advice Pin
Roman Fadeyev15-Aug-02 23:46
Roman Fadeyev15-Aug-02 23:46 
GeneralRe: Need Advice Pin
Zayax15-Aug-02 23:50
Zayax15-Aug-02 23:50 
GeneralRe: Need Advice Pin
Christian Graus15-Aug-02 23:50
protectorChristian Graus15-Aug-02 23:50 
GeneralWaitForMultipleObjects() Question!! Pin
tongc15-Aug-02 21:28
tongc15-Aug-02 21:28 
GeneralRe: WaitForMultipleObjects() Question!! Pin
Mike Nordell15-Aug-02 22:12
Mike Nordell15-Aug-02 22:12 
GeneralRe: WaitForMultipleObjects() Question!! Pin
tongc16-Aug-02 0:48
tongc16-Aug-02 0:48 
GeneralRe: WaitForMultipleObjects() Question!! Pin
Mike Nordell17-Aug-02 23:41
Mike Nordell17-Aug-02 23:41 
GeneralADO recordset object Pin
Shamoon15-Aug-02 21:05
Shamoon15-Aug-02 21:05 
GeneralRe: ADO recordset object Pin
Stefan Pedersen15-Aug-02 23:02
Stefan Pedersen15-Aug-02 23:02 
GeneralRe: ADO recordset object Pin
Prem Kumar16-Aug-02 2:52
Prem Kumar16-Aug-02 2:52 
QuestionIs a service running ? Pin
Christian Graus15-Aug-02 20:59
protectorChristian Graus15-Aug-02 20:59 
AnswerRe: Is a service running ? Pin
Nish Nishant15-Aug-02 21:35
sitebuilderNish Nishant15-Aug-02 21:35 
QuestionHow to integrate Font control? Pin
Prateeti15-Aug-02 19:38
Prateeti15-Aug-02 19:38 

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.