property sheet hangs on a CFormView
IK2318 Graham CUNNINGHAM -- GRAHAM.G.C.U.CUNNINGHAM@TGD.SWISSPTT.inet.ch
Wednesday, January 31, 1996
env: WIN NT 3.51, VC 4.0
Hi,
I have placed a CMyPropertySheet with a page and an edit
control on that page on a CFormView in an sdi app.
If I select print preview then the app hangs. When I debug
this I find that the property sheet wndproc is constantly
recieving the same message WM_GETDLGCODE.
Does anyone have a workaround for this?
I have noticed that _sometimes_ (1/10) it works normally if
I do other things eg switching focus away from the app
before issuing the print preview command.
regards,
MARGHAL@gw2k.com
Tuesday, February 06, 1996
Form: Reply
Text: (12 lines follow)
We ran into a similar problem with a program we are moving from VC 2.0 to VC
4.0. The solution in our case was to add the WS_EX_CONTROLPARENTstyle to
the child property sheet. To do this derive a class from CPropertySheet and
override OnInitDialog, call the base class and then add the
WS_EX_CONTROLPARENT style using the following:
ModifyStyleEx( 0, WS_EX_CONTROLPARENT );
Hope this helps.
Al Margheim
x27108
Original text: (18 lines follow)
>From mail@IH (IK2318 Graham
CUNNINGHAM){GRAHAM.G.C.U.CUNNINGHAM@TGD.SWISSPTT.inet.ch}, on 1/31/96 9:23
AM:
env: WIN NT 3.51, VC 4.0
Hi,
I have placed a CMyPropertySheet with a page and an edit
control on that page on a CFormView in an sdi app.
If I select print preview then the app hangs. When I debug
this I find that the property sheet wndproc is constantly
recieving the same message WM_GETDLGCODE.
Does anyone have a workaround for this?
I have noticed that _sometimes_ (1/10) it works normally if
I do other things eg switching focus away from the app
before issuing the print preview command.
regards,
Use Proportional Font: true
Previous From: mail@IH (IK2318 Graham CUNNINGHAM){GRAHAM.G.C.U.CUNNINGHAM@TGD.SWISSPTT.inet.ch}
Previous To: mail@IH (help){mfc-l@netcom.com}
Original to: mail@IH (help){mfc-l@netcom.com}
Attachment Count: 0
//BEGIN BINARY MAIL SEGMENT:
begin 644 ATTRIBS.BND
M0F5Y;VYD(%!A8VME9"!!='1R:6)U=&5S`([]"&<*"@``````0F5Y;VYD(%!R
M;W!R:65T87)Y($1A=&$:`````!$```````0`#0!V`0``````````````````
M````````3W)I9VEN86P@=&5X=&D"1@H`````````````9`$#`&D"7@$"``(`
M```0``(``0`!`&L``````````@!L`/X!````````./\```````"0`0``````
M````35,@4V%N
| Вернуться в корень Архива
|