Click here to Skip to main content
16,010,394 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAcces Violation with oledb CoUninitialize() instruction Pin
25-Mar-01 23:11
suss25-Mar-01 23:11 
GeneralRe: Acces Violation with oledb CoUninitialize() instruction Pin
25-Mar-01 23:34
suss25-Mar-01 23:34 
GeneralSome problem when hosting WebBrowser control in an application Pin
25-Mar-01 21:17
suss25-Mar-01 21:17 
QuestionHow resize dialog bar when it is in docked mode ? Pin
25-Mar-01 21:15
suss25-Mar-01 21:15 
QuestionHow resize dialog bar when it is in docked mode ? Pin
25-Mar-01 21:15
suss25-Mar-01 21:15 
QuestionHow to copy the value of _bstr_t into a BSTR variable?? Pin
25-Mar-01 20:56
suss25-Mar-01 20:56 
AnswerRe: How to copy the value of _bstr_t into a BSTR variable?? Pin
Erik Thompson25-Mar-01 21:21
sitebuilderErik Thompson25-Mar-01 21:21 
General1] OnKillFocus and RichEdit Ctrl - 2] Always on top Pin
25-Mar-01 20:37
suss25-Mar-01 20:37 
In my application I wanted to add "e-notes" functionality = the possibility to create/edit/delete the electronical equivalent of the well known Post-It notes.

So, every note is presented as a modeless, scalable note dialog containing one big rich edit control. (besides two static controls for displaying the date/time and the author)

Now, I have two problems with them:

1) I want the content of the rich edit control to be saved whenever the note dialog loses
focus (cf. the notes in Outlook)
But neither the handler function for the WM_KILLFOCUS message for the dialog
nor the handler function for the NM_KILLFOCUS message for the rich edit control
is triggered when e.g. I switch between two notes.
Only when I close the dialog the WM_KILLFOCUS handler function is triggered.
How come? How should I implement the desired behaviour?

2) A typical behaviour of such 'notes' is the possibility to show them 'always on top'.
I know the function to set that:
SetWindowPos(&wndTopMost,NULL,NULL,NULL,NULL,SWP_NOMOVE|SWP_NOSIZE|SWP_NOOWNERZORDER);
and it works.
But how do I reset that behaviour WITHOUT influencing the other note dialogs?

e.g. - I have successfully set 4 note dialogs to be always on top
- I choose to reset the behaviour from note 3:
SetWindowPos(&wndBottom,NULL,NULL,NULL,NULL,SWP_NOMOVE|SWP_NOSIZE|SWP_NOOWNERZORDER);
- Sometimes all other notes loose their 'always on top' behaviour,
sometimes some of them notes do. The behaviour seems to be unpredictable.
Can someone help me out?

Thanks in advance.
Geert Delmeiren.
GeneralWeb Service Deployment problem Pin
Kannan Kalyanaraman25-Mar-01 19:10
Kannan Kalyanaraman25-Mar-01 19:10 
GeneralRe: Web Service Deployment problem Pin
Gerry25-Mar-01 21:02
Gerry25-Mar-01 21:02 
GeneralChanging the clock text Pin
Greg Hedlund25-Mar-01 13:59
Greg Hedlund25-Mar-01 13:59 
GeneralRecognizing a voice Pin
Antonio25-Mar-01 13:45
Antonio25-Mar-01 13:45 
GeneralDevStudio macro to open (and position) file Pin
Ravi Bhavnani25-Mar-01 10:48
professionalRavi Bhavnani25-Mar-01 10:48 
GeneralRe: DevStudio macro to open (and position) file Pin
Kannan Kalyanaraman25-Mar-01 22:07
Kannan Kalyanaraman25-Mar-01 22:07 
QuestionHow to work with an ACCESS database. Pin
Rafal25-Mar-01 7:17
Rafal25-Mar-01 7:17 
AnswerRe: How to work with an ACCESS database. Pin
25-Mar-01 9:42
suss25-Mar-01 9:42 
GeneralOpening New DIALOG Pin
Rafal25-Mar-01 6:10
Rafal25-Mar-01 6:10 
GeneralRe: Opening New DIALOG Pin
l a u r e n25-Mar-01 6:55
l a u r e n25-Mar-01 6:55 
QuestionInclude ALL MFC dlls? Pin
25-Mar-01 6:00
suss25-Mar-01 6:00 
AnswerRe: Include ALL MFC dlls? Pin
Anders Molin25-Mar-01 8:58
professionalAnders Molin25-Mar-01 8:58 
GeneralRe: Include ALL MFC dlls? Pin
25-Mar-01 9:24
suss25-Mar-01 9:24 
GeneralRe: Include ALL MFC dlls? Pin
Michael Dunn25-Mar-01 10:39
sitebuilderMichael Dunn25-Mar-01 10:39 
AnswerRe: Include ALL MFC dlls? Pin
26-Mar-01 0:10
suss26-Mar-01 0:10 
GeneralRe: Include ALL MFC dlls? Pin
26-Mar-01 4:25
suss26-Mar-01 4:25 
GeneralAccessing parent class variables Pin
25-Mar-01 2:39
suss25-Mar-01 2:39 

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.