Click here to Skip to main content
16,005,181 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generallimiting the size of a CDialog Pin
nss21-Feb-03 22:19
nss21-Feb-03 22:19 
GeneralRe: limiting the size of a CDialog Pin
Stephane Rodriguez.21-Feb-03 22:56
Stephane Rodriguez.21-Feb-03 22:56 
GeneralRe: limiting the size of a CDialog Pin
nss21-Feb-03 23:28
nss21-Feb-03 23:28 
GeneralRe: limiting the size of a CDialog Pin
Stephane Rodriguez.22-Feb-03 0:38
Stephane Rodriguez.22-Feb-03 0:38 
GeneralRe: limiting the size of a CDialog Pin
Michael Dunn22-Feb-03 7:51
sitebuilderMichael Dunn22-Feb-03 7:51 
Questionwhat's font do u use when u programing? Pin
ttzzgg_8071321-Feb-03 21:45
ttzzgg_8071321-Feb-03 21:45 
AnswerRe: what's font do u use when u programing? Pin
Jambolo22-Feb-03 20:42
Jambolo22-Feb-03 20:42 
GeneralWindows Messages Pin
ROK_RShadow21-Feb-03 20:28
ROK_RShadow21-Feb-03 20:28 
Hmm.. As usual something that has first appeared obvious to me.. isn't.

I am using a class that sends the view a User Defined Message to notify it of some events that are taking place.

However after setting up the command handlers for the view I realized that the view was not recieving or processing the message.. so I decided to setup a test message.. and it is not working either.. so I must be doing something wrong.. and I just can't figure it out. I setup the test message handler as such.

afx_msg void OnTestMsg(WPARAM wParam, LPARAM lParam);
ON_COMMAND(WM_TESTMSG, OnTestMsg)
void CMyView::OnTestMsg(WPARAM wParam, LPARAM lParam)
{
TRACE("Test Message");
}

defined message in view header as such
#define WM_TESTMSG WM_USER + 5

Created a command ID with the following
SendMessage(WM_TESTMSG);
SendMessage(WM_TESTMSG,0,0);
::SendMessage(GetSafeHwnd(), WM_TESTMSG);
::SendMessage(GetSafeHwnd(), WM_TESTMSG,0,0);

but the message function is never fired..

Anybody see anything obvious that I am doing wrong.

Thank you.
GeneralRe: Windows Messages Pin
MAAK21-Feb-03 21:46
MAAK21-Feb-03 21:46 
GeneralRe: Windows Messages Pin
ROK_RShadow21-Feb-03 23:58
ROK_RShadow21-Feb-03 23:58 
Generalsystem() , need help please Pin
moraalg21-Feb-03 17:59
moraalg21-Feb-03 17:59 
GeneralRe: system() , need help please Pin
Chris Losinger21-Feb-03 18:13
professionalChris Losinger21-Feb-03 18:13 
GeneralRe: system() , need help please Pin
Mike Nordell22-Feb-03 8:42
Mike Nordell22-Feb-03 8:42 
QuestionHow to sort the contents of a list control by double clicking on the column header? Pin
The.Saint21-Feb-03 17:54
The.Saint21-Feb-03 17:54 
AnswerRe: How to sort the contents of a list control by double clicking on the column header? Pin
valikac21-Feb-03 18:42
valikac21-Feb-03 18:42 
GeneralRe: How to sort the contents of a list control by double clicking on the column header? Pin
Anonymous21-Feb-03 19:16
Anonymous21-Feb-03 19:16 
AnswerRe: How to sort the contents of a list control by double clicking on the column header? Pin
Ted Ferenc21-Feb-03 21:41
Ted Ferenc21-Feb-03 21:41 
GeneralRe: How to sort the contents of a list control by double clicking on the column header? Pin
nss21-Feb-03 22:20
nss21-Feb-03 22:20 
GeneralRe: How to sort the contents of a list control by double clicking on the column header? Pin
Ted Ferenc22-Feb-03 1:34
Ted Ferenc22-Feb-03 1:34 
GeneralRe: How to sort the contents of a list control by double clicking on the column header? Pin
Abin22-Feb-03 16:27
Abin22-Feb-03 16:27 
GeneralRe: How to sort the contents of a list control by double clicking on the column header? Pin
Ted Ferenc22-Feb-03 21:49
Ted Ferenc22-Feb-03 21:49 
GeneralEdit Box to another Edit Box Pin
DuFF21-Feb-03 15:19
DuFF21-Feb-03 15:19 
GeneralRe: Edit Box to another Edit Box Pin
Michael Dunn21-Feb-03 16:06
sitebuilderMichael Dunn21-Feb-03 16:06 
GeneralRe: Edit Box to another Edit Box Pin
DuFF21-Feb-03 16:22
DuFF21-Feb-03 16:22 
GeneralBitmaps? in dialogs Pin
work_to_live21-Feb-03 15:16
work_to_live21-Feb-03 15:16 

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.