Click here to Skip to main content
15,913,722 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionSimple ATL problem! Pin
alicqin13-Dec-06 14:03
alicqin13-Dec-06 14:03 
AnswerRe: Simple ATL problem! Pin
prasad_som13-Dec-06 18:18
prasad_som13-Dec-06 18:18 
GeneralRe: Simple ATL problem! Pin
alicqin14-Dec-06 16:35
alicqin14-Dec-06 16:35 
AnswerRe: Simple ATL problem! Pin
User 21559714-Dec-06 3:31
User 21559714-Dec-06 3:31 
GeneralRe: Simple ATL problem! Pin
alicqin14-Dec-06 16:36
alicqin14-Dec-06 16:36 
AnswerRe: Simple ATL problem! Pin
alicqin14-Dec-06 16:34
alicqin14-Dec-06 16:34 
QuestionSelect all accelerator for edit controls Pin
blueluna13-Dec-06 2:18
blueluna13-Dec-06 2:18 
AnswerRe: Select all accelerator for edit controls Pin
Steve Echols13-Dec-06 18:54
Steve Echols13-Dec-06 18:54 
You could write your own edit class that handles the Ctrl-A, and subclass each edit control on your dialog:

Partial class:

class CSelectEdit : public CWindowImpl< CSelectEdit, CEdit >
{
public:

....

	BEGIN_MSG_MAP(CSelectEdit)
		MESSAGE_HANDLER(WM_KEYDOWN, OnKeyDown)

                ....

	END_MSG_MAP()

	LRESULT OnKeyDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
	{
                // check for Ctrl-A
                if ( GetKeyState(VK_CONTROL) < 0 && wParam == VK_A )
                {
                    SendMessage( EM_SETSEL, 0, -1 );
	            return 0;
		}

		bHandled = FALSE;
		return 1;
	}

};


Then in your dialog class, create a member variable for each edit control:

CSelectEdit m_edit1;

The in your OnInitDialog, subclass each edit control:

m_edit1.SubclassWindow( GetDlgItem( IDC_EDIT1 ) );


Well, that's one way to do it anyway.


- S
50 cups of coffee and you know it's on!

QuestionHow to remove horizontal scroll bar in list control? Pin
Pradeep.Reddy12-Dec-06 23:06
Pradeep.Reddy12-Dec-06 23:06 
GeneralRe: How to remove horizontal scroll bar in list control? Pin
Pradeep.Reddy21-Dec-06 1:33
Pradeep.Reddy21-Dec-06 1:33 
QuestionRead the contents of a file Pin
Anil_vvs12-Dec-06 17:41
Anil_vvs12-Dec-06 17:41 
AnswerRe: Read the contents of a file Pin
Stephen Hewitt12-Dec-06 18:26
Stephen Hewitt12-Dec-06 18:26 
GeneralRe: Read the contents of a file Pin
Anil_vvs12-Dec-06 18:35
Anil_vvs12-Dec-06 18:35 
GeneralRe: Read the contents of a file Pin
led mike12-Dec-06 18:40
led mike12-Dec-06 18:40 
GeneralRe: Read the contents of a file Pin
Stephen Hewitt12-Dec-06 18:42
Stephen Hewitt12-Dec-06 18:42 
QuestionAbout ATL call back event ! Pin
alicqin12-Dec-06 14:35
alicqin12-Dec-06 14:35 
QuestionDrag & Drop for menuitems Pin
benjamin2312-Dec-06 2:28
benjamin2312-Dec-06 2:28 
QuestionShow video problem in a ATL ActiveX plugin Pin
rachidovich11-Dec-06 2:54
rachidovich11-Dec-06 2:54 
Questionpb when passing std::map from a library to another Pin
ledzzep11-Dec-06 1:15
ledzzep11-Dec-06 1:15 
GeneralRe: pb when passing std::map from a library to another Pin
prasad_som11-Dec-06 2:24
prasad_som11-Dec-06 2:24 
AnswerRe: pb when passing std::map from a library to another Pin
jmastry11-Dec-06 2:33
jmastry11-Dec-06 2:33 
AnswerRe: pb when passing std::map from a library to another Pin
ledzzep11-Dec-06 2:33
ledzzep11-Dec-06 2:33 
AnswerRe: pb when passing std::map from a library to another Pin
Stuart Dootson11-Dec-06 3:30
professionalStuart Dootson11-Dec-06 3:30 
GeneralRe: pb when passing std::map from a library to another Pin
Stephen Hewitt11-Dec-06 12:25
Stephen Hewitt11-Dec-06 12:25 
AnswerRe: pb when passing std::map from a library to another Pin
Nemanja Trifunovic11-Dec-06 4:09
Nemanja Trifunovic11-Dec-06 4: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.