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

C / C++ / MFC

 
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 
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 
hfry - thanx.

your proposed solution looks feasible, and I will give it a try soon

I will have to understand all this subclassing stuff first...

it looks interesting.


You asked about how I changed on_notify and on_en_setfocus

hfry wrote:
How did you go about doing this? Using the IDE or manual edits to the message map?


I based my changes on this url

http://support.microsoft.com/default.aspx?scid=kb;en-us;181664[^]

after making the ON_NOTIFY TO EN_SETFOCUS change to the messagemap associated withthe Visual C++ 5.0 and 6.0 bug discussed in the link

I added my pointer/SetSel(0,0) code to the OnSetFocusTheEditControl function

there were no compiler errors

everything worked fine in debug configuration

however, changing to release configuration caused an access violation - with or without my pointer/SetSel(0,0) code whenever the modified function was present

the Microsoft page about the bug also said that you had to have AfxInitRichedit() in your dialog initinstance and modify the message handlers, but I cannot find any difference in the handlers other than the arguments

variations on these themes were not successful either - still the Access Violation in release config when oninit the dialog

A different link suggested that my pointer might be trying to hit the control before it existed - maybe that is the missing "this"? However, the problem occurs even without my pointer

I tried to use the en_killfocus a while back for something else using the same type of messagemap modifications, and had a similar release configuration exception - which forced me to use a different aproach

I wish I understood what the problem is with the modified on_en_setfocus, or better, how to eliminate it in release config and understand it.

I hope this answers your question.



Thanks again.

"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
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 
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 

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.