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

C / C++ / MFC

 
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 
GeneralRe: Cutout window (creating a "hole") Pin
mishgun17-Aug-02 0:03
mishgun17-Aug-02 0:03 
// get screen coordinates
RECT OrgRect;
GetWindowRect(hWnd, &OrgRect);
POINT ptLT, ptRB;
ptLT.x = OrgRect.left;
ptLT.y = OrgRect.top;
ptRB.x = OrgRect.right;
ptRB.y = OrgRect.bottom;
// convert to client
ScreenToClient(hWnd, &ptLT);
ScreenToClient(hWnd, &ptRB);
// convert from client area to entire window area
ptRB.x -= ptLT.x;
ptRB.y -= ptLT.y;
ptLT.x -= ptLT.x;
ptLT.y -= ptLT.y;
// create new region for window
HRGN hNewRgn = CreateRectRgn(ptLT.x, ptLT.y, ptRB.x, ptRB.y);
// "hole" region
HRGN hRectRgn = CreateRectRgn(ptLT.x+50, ptLT.y+50, ptRB.x-50, ptRB.y-50);
// combine them
HRGN hResultRgn = CreateRectRgn(0, 0, 0, 0);
CombineRgn(hResultRgn, hNewRgn, hRectRgn, RGN_DIFF);

SetWindowRgn(hWnd, hResultRgn, TRUE);

this one works for sure
can send you a demo project

nobody is perfect
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 
AnswerRe: How to integrate Font control? Pin
Stefan Pedersen15-Aug-02 23:08
Stefan Pedersen15-Aug-02 23:08 

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.