Click here to Skip to main content
15,915,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HWND from ProcessID Pin
Tim Smith7-Feb-03 8:38
Tim Smith7-Feb-03 8:38 
GeneralRe: HWND from ProcessID Pin
Chris Meech7-Feb-03 8:42
Chris Meech7-Feb-03 8:42 
GeneralCan't get FrameRgn() to work! :( Pin
Rickard Andersson207-Feb-03 6:44
Rickard Andersson207-Feb-03 6:44 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Paul M Watt7-Feb-03 12:07
mentorPaul M Watt7-Feb-03 12:07 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Rickard Andersson208-Feb-03 1:54
Rickard Andersson208-Feb-03 1:54 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Mike Nordell8-Feb-03 7:15
Mike Nordell8-Feb-03 7:15 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Rickard Andersson208-Feb-03 9:39
Rickard Andersson208-Feb-03 9:39 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Mike Nordell9-Feb-03 2:26
Mike Nordell9-Feb-03 2:26 
Rickard Andersson wrote:
Mike Nordell wrote:
Your code violates both of the the only two documented restrictions

Which means?


That your code did both of the only two documented things discouraged and/or forbidden.

Your displayed code, after a (hopefully) successful call to SetWindowRgn:

1) did use the region handle.
2) deleted the region.

I wouldn't expect 1 to make (that much of) a difference in this case, but 2 sure does.

Let's visit the documented restrictions again, but this time I'll underline what I think are the important passages:

After a successful call to SetWindowRgn, the system owns the region specified by the region handle hRgn. The system does not make a copy of the region. Thus, you should not make any further function calls with this region handle. In particular, do not close this region handle.
GeneralFile association launched app... Pin
Dr Soong7-Feb-03 6:33
Dr Soong7-Feb-03 6:33 
GeneralRe: File association launched app... Pin
Neville Franks7-Feb-03 10:02
Neville Franks7-Feb-03 10:02 
GeneralRe: File association launched app... Pin
Dr Soong7-Feb-03 12:17
Dr Soong7-Feb-03 12:17 
GeneralChanging the color of a static text Pin
Tom Wright7-Feb-03 5:19
Tom Wright7-Feb-03 5:19 
GeneralRe: Changing the color of a static text Pin
AlexO7-Feb-03 5:27
AlexO7-Feb-03 5:27 
GeneralRe: Changing the color of a static text Pin
Dr Soong7-Feb-03 8:46
Dr Soong7-Feb-03 8:46 
GeneralCatching Exceptions in MFC Pin
Tom Wright7-Feb-03 5:10
Tom Wright7-Feb-03 5:10 
GeneralRe: Catching Exceptions in MFC Pin
AlexO7-Feb-03 5:34
AlexO7-Feb-03 5:34 
GeneralVisual C++ wizard Pin
De Nardis Andrea7-Feb-03 5:03
De Nardis Andrea7-Feb-03 5:03 
Questionhow to set CListbox row height variable? Pin
hamchoy7-Feb-03 4:52
hamchoy7-Feb-03 4:52 
AnswerRe: how to set CListbox row height variable? Pin
Roger Allen7-Feb-03 6:07
Roger Allen7-Feb-03 6:07 
GeneralCPen Pin
Ahmad997-Feb-03 3:55
Ahmad997-Feb-03 3:55 
GeneralRe: CPen Pin
Joaquín M López Muñoz7-Feb-03 4:00
Joaquín M López Muñoz7-Feb-03 4:00 
GeneralRe: CPen Pin
Ahmad997-Feb-03 4:09
Ahmad997-Feb-03 4:09 
GeneralRe: CPen Pin
Maximilien7-Feb-03 4:19
Maximilien7-Feb-03 4:19 
GeneralCTreeCtrl Pin
will13837-Feb-03 3:51
will13837-Feb-03 3:51 
GeneralRe: CTreeCtrl Pin
Joaquín M López Muñoz7-Feb-03 3:59
Joaquín M López Muñoz7-Feb-03 3:59 

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.