Click here to Skip to main content
15,920,031 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Resizing Pin
Sarriss12-Oct-08 5:41
Sarriss12-Oct-08 5:41 
GeneralRe: Resizing Pin
enhzflep12-Oct-08 7:42
enhzflep12-Oct-08 7:42 
GeneralRe: Resizing Pin
Sarriss12-Oct-08 8:11
Sarriss12-Oct-08 8:11 
GeneralRe: Resizing Pin
enhzflep12-Oct-08 8:43
enhzflep12-Oct-08 8:43 
GeneralRe: Resizing Pin
Mark Salsbery12-Oct-08 9:02
Mark Salsbery12-Oct-08 9:02 
GeneralRe: Resizing Pin
Mark Salsbery12-Oct-08 9:10
Mark Salsbery12-Oct-08 9:10 
GeneralRe: Resizing Pin
Sarriss12-Oct-08 10:55
Sarriss12-Oct-08 10:55 
GeneralRe: Resizing Pin
Mark Salsbery12-Oct-08 11:18
Mark Salsbery12-Oct-08 11:18 
That's fine - the idea was to show you working code.

In your code sample, you delete two regions on every mousemove message.
Who creates those regions?
You DO know you are not supposed to delete a region you've used in SetWindowRgn(), right?

You also create two identical new regions and OR them together (???) on
every mousemove message. You use local variables for those so if you think you are
destroying them later, you are wrong.

You didn't show any code that does anything with transparency or
"shape my form and have nice round edges" so it's hard to give you an
example that does what you are doing (or trying to do) Smile | :)

It's also impossible to tell what might be wrong...

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Resizing Pin
Sarriss12-Oct-08 12:10
Sarriss12-Oct-08 12:10 
GeneralRe: Resizing Pin
enhzflep12-Oct-08 21:50
enhzflep12-Oct-08 21:50 
GeneralRe: Resizing Pin
Sarriss13-Oct-08 1:12
Sarriss13-Oct-08 1:12 
GeneralRe: Resizing Pin
enhzflep13-Oct-08 2:28
enhzflep13-Oct-08 2:28 
GeneralRe: Resizing Pin
Sarriss13-Oct-08 2:33
Sarriss13-Oct-08 2:33 
GeneralRe: Resizing Pin
enhzflep13-Oct-08 2:44
enhzflep13-Oct-08 2:44 
GeneralRe: Resizing Pin
Sarriss13-Oct-08 2:51
Sarriss13-Oct-08 2:51 
GeneralRe: Resizing Pin
enhzflep13-Oct-08 3:02
enhzflep13-Oct-08 3:02 
GeneralRe: Resizing Pin
Sarriss13-Oct-08 3:10
Sarriss13-Oct-08 3:10 
GeneralRe: Resizing Pin
Mark Salsbery12-Oct-08 7:47
Mark Salsbery12-Oct-08 7:47 
QuestionI have some questions. Pin
FR2ESOD12-Oct-08 1:36
FR2ESOD12-Oct-08 1:36 
AnswerRe: I have some questions. Pin
Jijo.Raj12-Oct-08 2:04
Jijo.Raj12-Oct-08 2:04 
AnswerRe: I have some questions. Pin
Bram van Kampen12-Oct-08 2:30
Bram van Kampen12-Oct-08 2:30 
QuestionNulls inserted between text characters when using GetDlgItemText Pin
ForNow11-Oct-08 21:05
ForNow11-Oct-08 21:05 
AnswerRe: Nulls inserted between text characters when using GetDlgItemText Pin
CPallini11-Oct-08 21:41
mveCPallini11-Oct-08 21:41 
AnswerRe: Nulls inserted between text characters when using GetDlgItemText Pin
Hamid_RT11-Oct-08 22:13
Hamid_RT11-Oct-08 22:13 
AnswerRe: Nulls inserted between text characters when using GetDlgItemText Pin
ForNow11-Oct-08 23:31
ForNow11-Oct-08 23:31 

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.