Click here to Skip to main content
15,889,034 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDefault edit/richeditctrl text selection allows easy delete after tab key to control. Pin
lctrncs24-Aug-06 8:17
lctrncs24-Aug-06 8:17 
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 
Wow.

Thanks for your feedback!

I very much appreciate it.

You seem interested in this from an almost didactic standpoint.

I can appreciate that.

I need to clear the selection on my control so my users do not erase their data.

Perhaps we can collaborate.

What can't be right? Including the LRESULT*pResult?

Let me first say that I used to test ATM network protocol analyzers for HP - and can test many options quickly.

Let me know more about your area of interest - and I will try to assist.

Lets review the possibilities.

I am using Visual C++ 6.0 Standard (copyright 1994-1998) MSCorp.

I used the classwizard to add an EN_SETFOCUS function for either/both a rich edit control or an edit control, then changed the message map as directed by the microsoft bug admission url (see previous message) - and added AfxInitRichEdit(); to my InitInsatnce as directed by the MS URL.

Perhaps this is/can be a baseline?

I will test the options now - good thing I am sleep apnea/narcoletpic/insomniac!

1. does afxinitrichedit end exception if present in initinstance if altered on_en_setfocus code present(not include SetSel) in release?

stand by ...

release config - no onsetfocus -> no access violotion - open dilog box interface to DB on top of document view - no problem

remove comments from altered on_notify->on_en_setfocus map/handler/function - but no pointer/SetSel(0,0) code int onsetfocus function...

PS: dialog box modeless....

->Unhandled exceptoin - access violation = true.

onsetfocus arguments (Lresult *pResult) -> onsetfocus arguments (Lresult *pResult) ->access violation = true

onsetfocus arguments () -> access violation = true

onsetfocus arguments (NMHDR, pNMHDR, Lresult *pResult) -> access violation = true


ADD SetSel(0,0) -> access violation = true

previous post appears incorrect that onsetfocus arguments (Lresult *pResult) ->access violation = false <- false



if setfocus code present - even though compiles in debug p (after) changing on_notify to ON-En-Setfocus - access violation in release config

no possibility appears to function when unaltered, or altered onsetfocus code present in release config (although fixed in debug when onsetfocus arguments (NMHDR, pNMHDR, Lresult *pResult).

A local high end embedded programmer suggested that I might not have allthe libraries I need.

perhaps I should be trying to learn about subclassing

All I want to do is clear a selection when I hit the control...

WHY is this so hard?

I hope this delivers useful info.

Thanks again for your feedback.

sleep awaits...





"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

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 
AnswerRe: send message to Yahoo user Pin
jk chan24-Aug-06 14:27
jk chan24-Aug-06 14:27 
AnswerRe: send message to Yahoo user Pin
ThatsAlok24-Aug-06 18:08
ThatsAlok24-Aug-06 18:08 
QuestionChanging bitmaps using UpdateResource Pin
Kharfax24-Aug-06 7:09
Kharfax24-Aug-06 7:09 
AnswerRe: Changing bitmaps using UpdateResource Pin
David Crow24-Aug-06 7:36
David Crow24-Aug-06 7:36 
GeneralRe: Changing bitmaps using UpdateResource Pin
Kharfax24-Aug-06 7:46
Kharfax24-Aug-06 7:46 
GeneralRe: Changing bitmaps using UpdateResource Pin
$motty24-Aug-06 8:18
$motty24-Aug-06 8:18 
GeneralRe: Changing bitmaps using UpdateResource Pin
Kharfax24-Aug-06 8:27
Kharfax24-Aug-06 8:27 

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.