luc.roels | 1 Jul 10:23
Favicon

Theming in ActiveX

Hi,

Can someone send me or give me a link of a simple atl composite control, generated by the application wizard
that has some buttons, comboboxes... on it that when displayed in IE shows up in XP style. Preferably
something that builds in VC2005

I am really desperate, I've just tried about anything to get the controls to show up in XP style. Adding
manifests, defining ISOLATION_AWARE_ENABLED, setting the MANIFEST_RESOURCE_ID to 2, it all just
didn't help. I must be missing something stupid but i just can't get it to work. So a working example would be
great, you can email it to luc.roels@...

Thanks

Luc

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

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)

carr 帅 | 26 Jun 08:34
Favicon

listview usage

in wtl, i want to get which items are being selected in a listview control.
in MFC, i can use  GetFirstSelectedItemPosition(); GetNextSelectedItem.
 
so, how to perform the same thing in WTL ??
 
thanks very much.

      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

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

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

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:
    mailto:wtl-digest@... 
    mailto:wtl-fullfeatured@...
(Continue reading)

Mojtaba Fathi | 25 Jun 13:39
Favicon

This seems to be a bug in WTL::CCommandBarCtrlImpl class template


Hi

The WTL::CCommandBarCtrlImpl class template has a member variable named m_wndParent, which it uses to
capture messages from it's parent window. This member must be released in response to WM_DESTROY
message, to prevent incorrectly capturing the messages from parent, but it is released in the
destructor. I think the following piece of code which exists in destructor, must be duplicated somewhere
within the body of WTL::CCommandBarCtrlImpl::OnDestroy:

// CODE STARTS HERE
        if(m_wndParent.IsWindow())
            m_wndParent.UnsubclassWindow();
// CODE ENDS HERE

If I'm true, WTL::CCommandBarCtrlImpl::OnDestroy function could be like this:

// CODE STARTS HERE
    LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& /*bHandled*/)
    {
        LRESULT lRet = DefWindowProc(uMsg, wParam, lParam);

        // START OF NEWLY ADDED CODE
        if(m_wndParent.IsWindow())
            m_wndParent.UnsubclassWindow();
        // END OF NEWLY ADDED CODE
            
            ...
            
// CODE ENDS HERE

(Continue reading)

jochen.stier | 23 Jun 00:26
Favicon

CFileDialog crash on Vista

Hi, 

I am having the oddest problem with wtl8 on Vista. Opening a file dialog brings up a wait cursor and then my App
hangs; no window appears. Of course this runs fine under XP. 

CFileDialog lDialog(TRUE);

lDialog.doModel();

I am using Visual Studio 2005 and I have recently upgraded to wtl8 after I had the same problem with wtl71. I
have been googling the problem and it turns out that the CFileDialog are handled differently under Vista,
but I could not really find a solution to the problem. Does anyone have a hunch what could cause this
problem? Do I need some special entry in stdafx.h or use a particular compiler flag? This is what my
stdafx.h looks like

#define WINVER          0x0400
#define _WIN32_WINNT    0x0500
#define _WIN32_IE       0x0501

#define _WTL_USE_CSTRING
#define _ATL_APARTMENT_THREADED

#include <atlbase.h>
#include <atlapp.h>

extern CAppModule _Module;

#include <atlcom.h>
#include <atlhost.h>
#include <atlwin.h>
(Continue reading)

dev_etech | 20 Jun 22:05

CFolderDialogImpl - SetOKText()

Hi,
First I'd like to say "big thanks" to the WTL team for this GREAT library!
I have my own BrowseForFolder C++ class but I recently decided to use the CFolderDialogImpl class in one of
my WTL projects and found a small problem in the function "void SetOKText(LPCTSTR lpstrOKText)" at line
#1533. I solved the problem replacing:
//::SendMessage(m_hWnd, BFFM_SETOKTEXT, (WPARAM)lpstr, 0L);
by:
::SendMessage(m_hWnd, BFFM_SETOKTEXT, 0, (LPARAM)lpstr); 
at line #1541.
It works just fine now.
Hope it helps - WTL really rocks !
Philippe Marechal

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

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:
    mailto:wtl-digest@... 
    mailto:wtl-fullfeatured@...
(Continue reading)

tbandrowsky | 18 Jun 21:18

Reserving screen space on main frame

Hello.  I am writing a WTL application and for whatever maddening reasons I have decided to not use the
existing menu/toolbar structure and have my own navigation and toolbar in place instead.  I understand
how to not have items on the main window, by monkeying with OnCreate in MainFrm.h, but, what I would like to
do is have my u/i in MainFrm reserve some space for its my custom widget, which it would draw, but then still
have the view move correspondingly.

I suppose I could brute force it by handling WM_SIZE, etc, but I notice that the existing frame seems to
always have the view the right size, taking into consideration the other decorations.  What do I need to do
to have my widget play with MainFrame in the right way.  What I'd really like to do, ultimately, is have
mymainframe and menu be a single class so I can reuse the navigation for other projects and have a ready to go frame.

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

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:
    mailto:wtl-digest@... 
    mailto:wtl-fullfeatured@...

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

veryggungs | 17 Jun 09:36

CFileDialogImpl extends in Windows Mobile Message Problem

class CPictureOpenDlg : public CFileDialogImpl<CPictureOpenDlg>

{
public:
	
	CPictureOpenDlg( // Supports only FileOpen
		LPCTSTR lpszDefExt = NULL,
		LPCTSTR lpszFileName = NULL,
		DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
		OFN_EXFLAG ExFlags = OFN_EXFLAG_THUMBNAILVIEW,
		OFN_SORTORDER dwSortOrder = OFN_SORTORDER_AUTO,		
		LPCTSTR lpszFilter = NULL,
		HWND hWndParent = NULL)
		: CFileDialogImpl<CPictureOpenDlg>(TRUE, lpszDefExt, lpszFileName, dwFlags, lpszFilter, hWndParent)
	{
		m_ofn.ExFlags = ExFlags;
		m_ofn.dwSortOrder = dwSortOrder;
	}

	BEGIN_MSG_MAP(CPictureOpenDlg)
		CHAIN_MSG_MAP(CFileDialogImpl<CPictureOpenDlg>)
	END_MSG_MAP()

	void OnInitDone(LPOFNOTIFY lpon)
	{
		MessageBox(L"OK");
	}
}

In Windows Mobile Programming, Does not run override function
(Continue reading)

Richard B. | 13 Jun 22:58

ATL/WTL CString code bloat

Given that ATL/WTL's CString class has all of the methods inlined,
would I be right in thinking that using CString can result in
code-bloat if it's used heavily ?

I would imagine the same is also true of STL's string as well.

In these cases, I was thinking of creating my own CString class, based
on ATL's/WTL's version, but with most methods defined out-of-line.

-- 
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:
    mailto:wtl-digest@... 
    mailto:wtl-fullfeatured@...
(Continue reading)

arasakumaran | 13 Jun 08:58
Favicon

Tab Key not working in Form View

Hi,

I have an application where I can have multiple windows open - each of these is an SDI window with a view
derived from CDialogImpl.  I am not getting the Tab key to work properly in these windows - when I try to tab
from one control to another, I just get a 'ding' & the cursor stays in the current control.   I do have
PreTranslateMessage in the FrameWindow which calls the PreTranslateMessage in the view which returns IsDialogMessage.

What am I doing wrong?

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

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:
    mailto:wtl-digest@... 
    mailto:wtl-fullfeatured@...

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

(Continue reading)

Mojtaba Fathi | 3 Jun 18:59
Favicon

Please suggest a good, free, open source XY plot generation library


Hi all

I've mentioned all I want in the subject line.

Moji

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

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

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:
    mailto:wtl-digest@... 
    mailto:wtl-fullfeatured@...

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

(Continue reading)

domehead100 | 2 Jun 07:22

SetCursor weirdness

Hi Folks,

So, I've writtten this window finder thingie, like the window finder in Spy++ but hopefully a lot better.

It's based on CStatic and displays a bitmap of a crosshairs-type picture, and when you click on it you can
drag the crosshairs over different windows and it highlights them.  

I was reviewing the code today and discovered a couple of oddities that have me quite confused.  I'm
wondering if anyone could help explain things.

Oddity #1

When reviewing the code, I discovered that the class was declared like this:

template<class TValidator = CNoSWSValidate>
class CSelectWindowStaticT : public CWindowImpl<CStatic>
{
...
}

Note that it is not ": public CWindowImpl<CSelectWindowStaticT<TValidator>, CStatic>", it's just ":
public CWindowImpl<CStatic>"

Yet, all of my message handlers in CSelectWindowStaticT ARE being called (OnMouseMove, OnLButtonDown, etc.).

Why?  The message map should be calling ProcessWindowMessage for the first template argument to
CWindowImpl, and CStatic is not an Impl class and has no such function.  Well, actually it should
static_cast itself to CStatic and then end-up calling it's own ProcessWindowMessage because CStatic
has none.  

(Continue reading)


Gmane