Click here to Skip to main content
15,912,021 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Terminating a Process Pin
Ghazi H. Wadi20-Sep-01 12:55
Ghazi H. Wadi20-Sep-01 12:55 
GeneralRe: Terminating a Process Pin
20-Sep-01 12:58
suss20-Sep-01 12:58 
QuestionHow to enable sharing resources from an extension DLL? Pin
20-Sep-01 11:31
suss20-Sep-01 11:31 
AnswerRe: How to enable sharing resources from an extension DLL? Pin
Tomasz Sowinski20-Sep-01 11:46
Tomasz Sowinski20-Sep-01 11:46 
GeneralRe: How to enable sharing resources from an extension DLL? Pin
20-Sep-01 11:53
suss20-Sep-01 11:53 
Generalsubsplitter of splitter Pin
Peter Molnar20-Sep-01 10:11
Peter Molnar20-Sep-01 10:11 
GeneralRe: subsplitter of splitter Pin
Oscar Vazquez21-Sep-01 11:35
Oscar Vazquez21-Sep-01 11:35 
GeneralWindow paint problem when using CPropertySheet with CComboBox Pin
20-Sep-01 10:07
suss20-Sep-01 10:07 
I've created a CDialog based application from which I call a property sheet containing a single property page. This property page contains a single CComboBox control set in dropdown mode. If I display the property sheet and drag it to a position where it overlaps both the application dialog and the background, a portion of the property sheet is filled with whatever lies in the background. This behavior is seen only the first time the property sheet is displayed(but each time the application is restarted) and when "Show window contents while dragging" option of the Control panel/display setting/plus! is disabled!!!

====How to reproduce===
Ok, here's the "for dummies" procedure.

1) Create an MFC AppWizard project named "test"
2) Make it dialog based and keep all other default settings
3) Open the dialog
4) Remove the OK/CANCEL buttons and the "TODO:..." static
5) Set the dialog size to 500x250 (yes, if too small, problem won't show)
6) Insert a new button (IDC_BUTTON1)
7) In class Wizard, add a onButton1() function in CTestDlg
8) Insert an IDD_PROPPAGE_MEDIUM dialog in your project
9) Delete the "TODO:..." static of the property page dialog
10) Add a combo box control to the property page dialog
11) In class wizard, create the new class "cproppage" based on CPropertyPage and dialog IDD_PROPPAGE_MEDIUM
12) Using class wizard, create a new class "cpropsheet" based on CPropertySheet.
13) In the TestDlg.h file, add #include "cproppage.h" and #include "cpropsheet.h"
14) In the TestDlg.h file, add private member "cproppage proppage" to class CTestDlg
15) In the TestDlg.cpp file, in the onButton1() function, add:
cpropsheet lDlg("test");
lDlg.AddPage(&proppage);
lDlg.DoModal();

16) That's it! Compile it, run it.
17) Do not move the application dialog
18) Press the button (the property sheet is displayed)
19) Drag the property sheet such that it overlaps the dialog border (try half/half)
20) Release mouse button
21) Voila! Portion of property sheet refreshed with background!!!!

If a control other than the Combo box is used, there is no problem...

What is happening?

Thanks to all!


==Carl==
GeneralStrange CTreeCtrl behavior Pin
Ken Goguen20-Sep-01 9:16
Ken Goguen20-Sep-01 9:16 
GeneralRe: Strange CTreeCtrl behavior Pin
Michael Dunn20-Sep-01 9:28
sitebuilderMichael Dunn20-Sep-01 9:28 
GeneralRe: Strange CTreeCtrl behavior Pin
Ken Goguen20-Sep-01 9:50
Ken Goguen20-Sep-01 9:50 
GeneralRe: Strange CTreeCtrl behavior Pin
Tomasz Sowinski20-Sep-01 9:29
Tomasz Sowinski20-Sep-01 9:29 
GeneralRe: Strange CTreeCtrl behavior Pin
Ken Goguen20-Sep-01 9:53
Ken Goguen20-Sep-01 9:53 
GeneralRe: Strange CTreeCtrl behavior Pin
Tomasz Sowinski20-Sep-01 9:57
Tomasz Sowinski20-Sep-01 9:57 
GeneralRe: Strange CTreeCtrl behavior Pin
Ken Goguen20-Sep-01 10:12
Ken Goguen20-Sep-01 10:12 
GeneralDLL Question Pin
#realJSOP20-Sep-01 9:03
professional#realJSOP20-Sep-01 9:03 
GeneralRe: DLL Question Pin
Tomasz Sowinski20-Sep-01 9:15
Tomasz Sowinski20-Sep-01 9:15 
GeneralOleAutomation Pin
duggie20-Sep-01 8:43
duggie20-Sep-01 8:43 
GeneralRe: OleAutomation Pin
Michael P Butler20-Sep-01 10:34
Michael P Butler20-Sep-01 10:34 
GeneralRe: OleAutomation Pin
duggie20-Sep-01 10:52
duggie20-Sep-01 10:52 
GeneralRe: OleAutomation Pin
Michael P Butler20-Sep-01 10:55
Michael P Butler20-Sep-01 10:55 
GeneralRe: OleAutomation Pin
Carlos Antollini20-Sep-01 10:53
Carlos Antollini20-Sep-01 10:53 
GeneralRe: OleAutomation Pin
duggie24-Sep-01 10:09
duggie24-Sep-01 10:09 
GeneralRe: OleAutomation Pin
Carlos Antollini25-Sep-01 9:15
Carlos Antollini25-Sep-01 9:15 
GeneralRe: OleAutomation Pin
duggie28-Sep-01 8:09
duggie28-Sep-01 8:09 

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.