Click here to Skip to main content
15,911,711 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: news: protocol Pin
Sasa Kajic8-Dec-00 2:59
Sasa Kajic8-Dec-00 2:59 
Generalnews: protocol Pin
Sasa Kajic7-Dec-00 0:47
Sasa Kajic7-Dec-00 0:47 
GeneralSending msg to Pager thru ASP Pin
6-Dec-00 4:26
suss6-Dec-00 4:26 
GeneralRe: Sending msg to Pager thru ASP Pin
SAWilde7-Dec-00 22:53
SAWilde7-Dec-00 22:53 
GeneralClipping Region of Child Window Controls Pin
Brian Rosenthal29-Nov-00 9:48
Brian Rosenthal29-Nov-00 9:48 
GeneralRe: Clipping Region of Child Window Controls Pin
Brian Rosenthal2-Dec-00 18:09
Brian Rosenthal2-Dec-00 18:09 
GeneralRe: Clipping Region of Child Window Controls Pin
Brian Rosenthal2-Dec-00 18:09
Brian Rosenthal2-Dec-00 18:09 
GeneralI think I understand wierd case 'A' Pin
Jim Howard5-Dec-00 6:48
Jim Howard5-Dec-00 6:48 
It says in the documentation for SetWindowRgn:

"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 delete this region handle. The system deletes the region handle when it no longer needed."

In case 'A' below, if you comment out the break statement then you destroy the window region after the first WM_PAINT message, thus putting your display into an undefined state.

Jim


// WEIRD OUTCOME A. If this line is uncommented, the child window is resized,
// but only temporarily. Alt-tabbing between applications seems to lose the region.
break; //if this is commented out, then lpab->hwndRichEditChatRegion is destroyed, violating rules for SetWindowRgn

// END WEIRD OUTCOME A

case WM_DESTROY:
DeleteObject(lpab->hwndRichEditChatRegion);
PostQuitMessage(0);
return 0;
}

GeneralRe: I think I understand wierd case 'A' Pin
SAWilde7-Dec-00 22:41
SAWilde7-Dec-00 22:41 
GeneralDisplay selection in Button Controls Pin
Amit Dey27-Nov-00 10:31
Amit Dey27-Nov-00 10:31 
GeneralRe: Display selection in Button Controls Pin
Michael Dunn27-Nov-00 15:19
sitebuilderMichael Dunn27-Nov-00 15:19 
GeneralCode lines in VisualC(or VB) that add a new menu in Excell's menu bar Pin
26-Nov-00 22:58
suss26-Nov-00 22:58 
GeneralCustomizing MS Internet Explorer Pin
J.Sridhar24-Nov-00 19:55
J.Sridhar24-Nov-00 19:55 
GeneralRe: Customizing MS Internet Explorer Pin
ColinDavies24-Nov-00 20:55
ColinDavies24-Nov-00 20:55 
GeneralRe: Customizing MS Internet Explorer Pin
29-Nov-00 8:59
suss29-Nov-00 8:59 
GeneralLaunch a file when download is complete Pin
22-Nov-00 4:32
suss22-Nov-00 4:32 
GeneralC/C++ and JavaScript interaction Pin
21-Nov-00 20:05
suss21-Nov-00 20:05 
GeneralMicrosoft Project File Format MPX Pin
Andrew Postlewhite21-Nov-00 0:06
Andrew Postlewhite21-Nov-00 0:06 
GeneralSoftware Protection Pin
Dominic I. Holmes20-Nov-00 8:09
Dominic I. Holmes20-Nov-00 8:09 
GeneralRe: Software Protection Pin
J.Sridhar24-Nov-00 20:01
J.Sridhar24-Nov-00 20:01 
GeneralRe: Software Protection Pin
Masoud Samimi2-Dec-00 0:05
Masoud Samimi2-Dec-00 0:05 
GeneralFully owner draw interface Pin
14-Nov-00 4:28
suss14-Nov-00 4:28 
GeneralRe: Fully owner draw interface Pin
23-Nov-00 12:32
suss23-Nov-00 12:32 
GeneralRe: Fully owner draw interface Pin
24-Nov-00 0:12
suss24-Nov-00 0:12 
GeneralRe: Fully owner draw interface Pin
.::RockNix::.18-Jan-01 22:24
.::RockNix::.18-Jan-01 22:24 

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.