Click here to Skip to main content
15,795,581 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLimiting # of columns in multi-column listbox Pin
KellyR13-Jul-06 18:15
KellyR13-Jul-06 18:15 
AnswerRe: Limiting # of columns in multi-column listbox [modified] Pin
Abhi Lahare13-Jul-06 18:36
Abhi Lahare13-Jul-06 18:36 
GeneralRe: Limiting # of columns in multi-column listbox Pin
KellyR13-Jul-06 18:44
KellyR13-Jul-06 18:44 
GeneralRe: Limiting # of columns in multi-column listbox Pin
Abhi Lahare13-Jul-06 19:01
Abhi Lahare13-Jul-06 19:01 
GeneralRe: Limiting # of columns in multi-column listbox [modified] Pin
KellyR13-Jul-06 19:10
KellyR13-Jul-06 19:10 
AnswerRe: Limiting # of columns in multi-column listbox Pin
Ryan Binns13-Jul-06 19:34
Ryan Binns13-Jul-06 19:34 
GeneralRe: Limiting # of columns in multi-column listbox Pin
KellyR13-Jul-06 19:36
KellyR13-Jul-06 19:36 
QuestionWM_TIMER Pin
thathvamsi13-Jul-06 17:48
thathvamsi13-Jul-06 17:48 
Hey all,
Finally, I managed to come up with a code snippet for WM_TIMER.
I have to send a packet from PC to the serial device(RABIT3000) at regular intervals 'x'seconds.

heres the code

On_begin()
{
Sendpacket();
SetTimer(m_nTimerID,x,NULL);
}

OnTimer(UINT nIDEvent)
{
// do the needful
Sendpacket();
CWnd::OnTimer(nIDEvent);
}

On_Stop()
{
KillTimer(m_nTimerID);
}

IS this correct? What more do I need to do? Where do I declare like "afx_msg void OnTimer(...)?

Thanks in advance.




AnswerRe: WM_TIMER Pin
see me13-Jul-06 18:33
see me13-Jul-06 18:33 
Questionanti-debug product for MFC? Pin
darbien siamak13-Jul-06 17:16
darbien siamak13-Jul-06 17:16 
AnswerRe: anti-debug product for MFC? Pin
Phil.Benson13-Jul-06 22:28
professionalPhil.Benson13-Jul-06 22:28 
QuestionFilling a square? Pin
Lord Kixdemp13-Jul-06 13:49
Lord Kixdemp13-Jul-06 13:49 
AnswerRe: Filling a square? Pin
earl13-Jul-06 14:22
earl13-Jul-06 14:22 
GeneralRe: Filling a square? Pin
Lord Kixdemp13-Jul-06 17:10
Lord Kixdemp13-Jul-06 17:10 
GeneralRe: Filling a square? Pin
Rilhas17-Jul-06 13:47
Rilhas17-Jul-06 13:47 
GeneralRe: Filling a square? Pin
Lord Kixdemp18-Jul-06 13:33
Lord Kixdemp18-Jul-06 13:33 
QuestionSubclass main Winamp window from plugin Pin
u0m313-Jul-06 13:13
u0m313-Jul-06 13:13 
AnswerRe: Subclass main Winamp window from plugin Pin
Justin Tay13-Jul-06 18:47
Justin Tay13-Jul-06 18:47 
GeneralRe: Subclass main Winamp window from plugin Pin
u0m315-Jul-06 6:25
u0m315-Jul-06 6:25 
GeneralRe: Subclass main Winamp window from plugin Pin
u0m318-Jul-06 3:15
u0m318-Jul-06 3:15 
GeneralRe: Subclass main Winamp window from plugin Pin
Justin Tay18-Jul-06 4:48
Justin Tay18-Jul-06 4:48 
QuestionCan I still use DLLs ? Pin
vcpp_cgr13-Jul-06 12:49
vcpp_cgr13-Jul-06 12:49 
AnswerRe: Can I still use DLLs ? Pin
Jun Du13-Jul-06 14:34
Jun Du13-Jul-06 14:34 
QuestionHBITMAP from clipboard Pin
Luksky13-Jul-06 12:43
Luksky13-Jul-06 12:43 
AnswerRe: HBITMAP from clipboard Pin
Chris Losinger13-Jul-06 12:52
professionalChris Losinger13-Jul-06 12:52 

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.