Click here to Skip to main content
15,888,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DialogBox of win32 dll Pin
prasad_som24-Aug-06 22:15
prasad_som24-Aug-06 22:15 
GeneralRe: DialogBox of win32 dll Pin
Manjunath S24-Aug-06 23:21
Manjunath S24-Aug-06 23:21 
GeneralRe: DialogBox of win32 dll Pin
prasad_som24-Aug-06 23:32
prasad_som24-Aug-06 23:32 
GeneralRe: DialogBox of win32 dll Pin
Manjunath S25-Aug-06 0:14
Manjunath S25-Aug-06 0:14 
GeneralRe: DialogBox of win32 dll Pin
prasad_som25-Aug-06 1:46
prasad_som25-Aug-06 1:46 
GeneralRe: DialogBox of win32 dll Pin
Manjunath S25-Aug-06 3:02
Manjunath S25-Aug-06 3:02 
GeneralRe: DialogBox of win32 dll Pin
prasad_som25-Aug-06 3:08
prasad_som25-Aug-06 3:08 
QuestionDefault edit/richeditctrl text selection allows easy delete after tab key to control. Pin
lctrncs24-Aug-06 8:17
lctrncs24-Aug-06 8:17 
Greetings brilliant kind and helpful Code Project types! we the lurkers and lowly rabble thank you!

i am using a dialog box as a front end to a flat file databaseon top of a document view SDI

in the dialog, the user adds data to two edit controls (one rich edit - the other just an edit control)

when the user tabs to either edit control, existing text in the control is selected, and if they begin text entry without clearing the slection, the existing text is deleted

the NO Hide Selection check box in the resources editor only clears the selection when the control loses focus

using EN_SETFOCUS (after changing the on_notify to on_en_setfocus in the message map), a pointer to the control and SelSel(0,0) *Works Great In Debug Configuration*, HOWEVER

the RELEASE configuration gives an Access Violatin exception, even without my pointer and SetSel(0,0), whenever you call oninitdialog when the onsetfocus code is present

the debugger provides error cxx0017 error: symbol "this" not found - and the code displayed is in \mfc\src\appmodul.cpp documented as "export winmain to force linkage to thes module"

I hvae also tried using pointer/setsel in other locations without success

Any Suggestions?

how might I change my program so that it is harder for the user to delete existing text which has unwanted selection upon gaining focus to the edit control using the tab key?

Thanks in advance for your time and consideration




"For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." Richard Feynman, Minority Report to the Official Report on the Space Shuttle Challenger Crash

AnswerRe: Default edit/richeditctrl text selection allows easy delete after tab key to control. Pin
David Crow24-Aug-06 9:14
David Crow24-Aug-06 9:14 
AnswerRe: Default edit/richeditctrl text selection allows easy delete after tab key to control. [modified] Pin
Justin Tay24-Aug-06 9:17
Justin Tay24-Aug-06 9:17 
GeneralRe: Default edit/richeditctrl text selection allows easy delete after tab key to control. Pin
lctrncs24-Aug-06 14:32
lctrncs24-Aug-06 14:32 
GeneralRe: Default edit/richeditctrl text selection allows easy delete after tab key to control. Pin
Justin Tay24-Aug-06 15:30
Justin Tay24-Aug-06 15:30 
GeneralRe: Default edit/richeditctrl text selection allows easy delete after tab key to control. Pin
lctrncs24-Aug-06 15:33
lctrncs24-Aug-06 15:33 
GeneralRe: Default edit/richeditctrl text selection allows easy delete after tab key to control. Pin
Justin Tay24-Aug-06 15:47
Justin Tay24-Aug-06 15:47 
GeneralRe: Default edit/richeditctrl text selection allows easy delete after tab key to control. Pin
lctrncs24-Aug-06 21:21
lctrncs24-Aug-06 21:21 
GeneralRe: Default edit/richeditctrl text selection allows easy delete after tab key to control. Pin
lctrncs25-Aug-06 3:55
lctrncs25-Aug-06 3:55 
QuestionApp Icon not showing correctly on desktop Pin
$motty24-Aug-06 8:05
$motty24-Aug-06 8:05 
AnswerRe: App Icon not showing correctly on desktop Pin
Waldermort24-Aug-06 8:34
Waldermort24-Aug-06 8:34 
GeneralRe: App Icon not showing correctly on desktop Pin
$motty24-Aug-06 12:04
$motty24-Aug-06 12:04 
GeneralRe: App Icon not showing correctly on desktop Pin
Waldermort24-Aug-06 14:37
Waldermort24-Aug-06 14:37 
GeneralRe: App Icon not showing correctly on desktop Pin
$motty24-Aug-06 20:58
$motty24-Aug-06 20:58 
GeneralRe: App Icon not showing correctly on desktop Pin
Waldermort24-Aug-06 22:51
Waldermort24-Aug-06 22:51 
GeneralRe: App Icon not showing correctly on desktop [modified] Pin
$motty25-Aug-06 4:53
$motty25-Aug-06 4:53 
Questionsend message to Yahoo user Pin
Silly Boy24-Aug-06 7:15
Silly Boy24-Aug-06 7:15 
QuestionRe: send message to Yahoo user Pin
David Crow24-Aug-06 7:37
David Crow24-Aug-06 7:37 

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.