Philippe | 2 Jun 2012 18:28
Picon

Minor artefact with CScrollWindowImpl...

Hi Nenad,

I have controls derived from 'CScrollWindowImpl<MyControl, CFSBWindow>' and particularly a DataGrid.
I noticed that when I turned my mouse's wheel (even if I dont need to scroll) some parts of my control were flickering.
So I checked the atlscrl.h file's code, more precisely CScrollImpl and the OnMouseWheel handler (line
#491 for the latest version of WTL) and found this:

if(m_sizeAll.cy > m_sizeClient.cy)
{
    for(int i = 0; i < zTotal; i += WHEEL_DELTA)
    {
	pT->DoScroll(SB_VERT, nScrollCode, (int&)m_ptOffset.y, m_sizeAll.cy, m_sizePage.cy, m_sizeLine.cy);
	pT->UpdateWindow();
    }
}
else		// can't scroll vertically, scroll horizontally
{
    for(int i = 0; i < zTotal; i += WHEEL_DELTA)
    {
	pT->DoScroll(SB_HORZ, nScrollCode, (int&)m_ptOffset.x, m_sizeAll.cx, m_sizePage.cx, m_sizeLine.cx);
	pT->UpdateWindow();
    }
}

This code means that if the mouse's wheel is turned then 
if(m_sizeAll.cy > m_sizeClient.cy) 
    it will scroll vertically and update (repaint) the client rect of the control
else
    it will scroll horizontally  and update (repaint) the client rect of the control

(Continue reading)

Nenad Stefanović | 4 Jun 2012 08:26
Picon

Re: Minor artefact with CScrollWindowImpl...

Hi Philippe,

Thank you for pointing this out. Your solution is what should be there, so
I will add it to the WTL code.

Thanks,
Nenad

On Sat, Jun 2, 2012 at 9:28 AM, Philippe <marechal.ph@...> wrote:

> **
>
>
> Hi Nenad,
>
> I have controls derived from 'CScrollWindowImpl<MyControl, CFSBWindow>'
> and particularly a DataGrid.
> I noticed that when I turned my mouse's wheel (even if I dont need to
> scroll) some parts of my control were flickering.
> So I checked the atlscrl.h file's code, more precisely CScrollImpl and the
> OnMouseWheel handler (line #491 for the latest version of WTL) and found
> this:
>
> if(m_sizeAll.cy > m_sizeClient.cy)
> {
> for(int i = 0; i < zTotal; i += WHEEL_DELTA)
> {
> pT->DoScroll(SB_VERT, nScrollCode, (int&)m_ptOffset.y, m_sizeAll.cy,
> m_sizePage.cy, m_sizeLine.cy);
> pT->UpdateWindow();
(Continue reading)

Richard | 21 Jun 2012 03:35
Picon
Favicon

Re: WTL AppWizards don't UIUpdateChildWindows(); line to CMainDlg::OnIdle()...

Just checked the latest WTL 8.1 release and this change never got
committed. As there were no objections, can this be committed ?

Best Regards,
Richard B.

On 09/06/2011 14:33, Jim Barry wrote:
>  
> 
> On 8 June 2011 20:42, Richard B. <dj_deipotent@...
> <mailto:dj_deipotent%40yahoo.co.uk>> wrote:
>>
>> I've been going through Michael Dunn's WTL for MFC tutorial from
>> CodeProject, and in Part V it mentions that there is a bug where
>> AppWizard doesn't add this line, so you have to manually add it.
>>
>> The fix is easy as it's just a matter of adding the line
>> UIUpdateChildWindows(); to OnIdle() in
>> wtl\Wizards\AppWiz\Files\Templates\1033\MainDlg.cpp , but I'm not sure
>> how to submit this change so it's committed to the trunk ?
>>
>> What are people's thoughts on changing this ?
> 
> I agree - seeing as the wizard code contains a call to
> UIAddChildWindowContainer(), it seems remiss for it not to include a
> corresponding call to UIUpdateChildWindows().
> 
> If there are no objections, I can check this in.
> 
> - Jim
(Continue reading)

Richard | 22 Jun 2012 02:02
Picon
Favicon

WTL exit codes not zero...

I've only just noticed that Wizard based WTL frame apps have a return
code of 1 when the X button is clicked by default, and Wizard based WTL
dialog apps have a return code of 2 when the X is clicked (but returns
button ID if OK or Cancel button is clicked in a dialog app).

Is this to be expected as most GUI based Windows apps return zero to
signify no problems ?

Best Regards,
Richard B.

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    wtl-digest@... 
    wtl-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
(Continue reading)

Jim Barry | 22 Jun 2012 02:19

Re: WTL AppWizards don't UIUpdateChildWindows(); line to CMainDlg::OnIdle()...

On 21 June 2012 02:35, Richard <dj_deipotent@...> wrote:
>
> Just checked the latest WTL 8.1 release and this change never got
> committed. As there were no objections, can this be committed ?

OK, here you go...

https://sourceforge.net/tracker/?func=detail&aid=3537028&group_id=109071&atid=652372

http://wtl.svn.sourceforge.net/viewvc/wtl?view=revision&revision=461

Cheers,

- Jim

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
(Continue reading)

Richard | 22 Jun 2012 02:28
Picon
Favicon

Re: WTL AppWizards don't UIUpdateChildWindows(); line to CMainDlg::OnIdle()...

Thanks Jim.

In future I'll report it in the bug tracker, and may just sign up to the
project as a developer. :)

Best Regards,
Richard B.

On 22/06/2012 01:19, Jim Barry wrote:
>  
> 
> On 21 June 2012 02:35, Richard <dj_deipotent@...
> <mailto:dj_deipotent%40yahoo.co.uk>> wrote:
>>
>> Just checked the latest WTL 8.1 release and this change never got
>> committed. As there were no objections, can this be committed ?
> 
> OK, here you go...
> 
> https://sourceforge.net/tracker/?func=detail&aid=3537028&group_id=109071&atid=652372
> 
> http://wtl.svn.sourceforge.net/viewvc/wtl?view=revision&revision=461
> 
> Cheers,
> 
> - Jim
> 
> 

------------------------------------
(Continue reading)

maybnxtseasn | 16 Jun 2012 20:13
Picon
Favicon

Nested Splitters Problem

http://social.msdn.microsoft.com/Forums/en-US/vcmfcatl/thread/bc715647-7f9b-4404-81fb-89c11bbd7b30

above is the link to the original discussion along with the code im using

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    wtl-digest@... 
    wtl-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    wtl-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Michael Stephenson | 22 Jun 2012 17:30
Picon

RE: Nested Splitters Problem

I think you need a PreTranslateMessage that returns ::IsDialogMessage for
the child dialog.  This is needed for modeless dialogs to drive their
message processing.  You can wire this up either in your dialog class and
attach/detach your message filter appropriately on dialog
creation/destruction, or you could have the frame's PreTranslateMessage
handler call the IsDialogMessage with the child dialog's window handle.  If
you create a new SDI project with the wizard and use a form view (a dialog),
it'll give you the general idea.

Other standard causes of the behavior you mention include not having a
REFLECT_NOTIFICATIONS() entry in the parent's message map and the setting of
WS_CLIPCHILDREN in the parent, though I doubt either of those are your
problem here.

In any event, it sounds like messages are not getting to your dialog window.

From: wtl@...
[mailto:wtl@...] On Behalf Of
maybnxtseasn
Sent: Saturday, June 16, 2012 2:14 PM
To: wtl@...
Subject: [wtl] Nested Splitters Problem

http://social.msdn.microsoft.com/Forums/en-US/vcmfcatl/thread/bc715647-7f9b-
4404-81fb-89c11bbd7b30

above is the link to the original discussion along with the code im using

[Non-text portions of this message have been removed]

(Continue reading)


Gmane