Click here to Skip to main content
15,918,404 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBitmap and Dialogue Interaction Pin
BlitzPackage8-Nov-06 17:56
BlitzPackage8-Nov-06 17:56 
AnswerRe: Bitmap and Dialogue Interaction Pin
Waldermort8-Nov-06 18:17
Waldermort8-Nov-06 18:17 
GeneralRe: Bitmap and Dialogue Interaction Pin
BlitzPackage9-Nov-06 1:27
BlitzPackage9-Nov-06 1:27 
AnswerRe: Bitmap and Dialogue Interaction Pin
Hamid_RT8-Nov-06 18:26
Hamid_RT8-Nov-06 18:26 
GeneralRe: Bitmap and Dialogue Interaction Pin
BlitzPackage9-Nov-06 1:37
BlitzPackage9-Nov-06 1:37 
GeneralRe: Bitmap and Dialogue Interaction Pin
Hamid_RT9-Nov-06 7:38
Hamid_RT9-Nov-06 7:38 
QuestionProblem with Windows Managed C++ Template? Pin
gloriousgopi8-Nov-06 17:39
gloriousgopi8-Nov-06 17:39 
QuestionCEdit selected text Pin
Imtiaz Murtaza8-Nov-06 17:19
Imtiaz Murtaza8-Nov-06 17:19 
Friends,
I have an edit control on a dialog box. I've placed some text in the edit box during dialog initialization. The problem is that, when the dialog appears on the screen, the entire text in the edit box is *selected*. I want to remove this selection, however i want the focus to remain in the edit control. I am doing something as follows but it is not working:

BOOL CWebServiceURLDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	m_editUrl.SetWindowText(_T("Tomato"));

	m_editUrl.SetSel(-1, 0);

	return TRUE;  
}


Please tell me how to remove the selection.

Imtiaz

AnswerRe: CEdit selected text Pin
Nibu babu thomas8-Nov-06 17:44
Nibu babu thomas8-Nov-06 17:44 
GeneralRe: CEdit selected text Pin
Imtiaz Murtaza8-Nov-06 18:42
Imtiaz Murtaza8-Nov-06 18:42 
GeneralRe: CEdit selected text Pin
David Crow9-Nov-06 3:49
David Crow9-Nov-06 3:49 
AnswerRe: CEdit selected text Pin
Nibu babu thomas8-Nov-06 19:10
Nibu babu thomas8-Nov-06 19:10 
QuestionAbout TreeCtrl Pin
wangpai8-Nov-06 15:55
wangpai8-Nov-06 15:55 
AnswerRe: About TreeCtrl Pin
Christian Graus8-Nov-06 17:09
protectorChristian Graus8-Nov-06 17:09 
GeneralRe: About TreeCtrl Pin
wangpai8-Nov-06 18:46
wangpai8-Nov-06 18:46 
GeneralRe: About TreeCtrl Pin
Hamid_RT8-Nov-06 20:08
Hamid_RT8-Nov-06 20:08 
Question_strnset_s : identifier not found, but string.h included Pin
samkook8-Nov-06 13:49
samkook8-Nov-06 13:49 
AnswerRe: _strnset_s : identifier not found, but string.h included Pin
Mark Salsbery8-Nov-06 14:24
Mark Salsbery8-Nov-06 14:24 
AnswerRe: _strnset_s : identifier not found, but string.h included [modified] Pin
George L. Jackson8-Nov-06 14:56
George L. Jackson8-Nov-06 14:56 
AnswerRe: _strnset_s : identifier not found, but string.h included Pin
samkook9-Nov-06 12:25
samkook9-Nov-06 12:25 
QuestionLinker error Pin
celllllllll8-Nov-06 12:41
celllllllll8-Nov-06 12:41 
AnswerRe: Linker error Pin
Christian Graus8-Nov-06 13:01
protectorChristian Graus8-Nov-06 13:01 
GeneralRe: Linker error Pin
celllllllll8-Nov-06 13:12
celllllllll8-Nov-06 13:12 
GeneralRe: Linker error Pin
User 5838528-Nov-06 14:30
User 5838528-Nov-06 14:30 
GeneralRe: Linker error Pin
Christian Graus8-Nov-06 15:31
protectorChristian Graus8-Nov-06 15:31 

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.