Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionStatic Member Initialization Issue [Solved] Pin
Skippums11-Feb-10 7:56
Skippums11-Feb-10 7:56 
AnswerRe: Static Member Initialization Issue Pin
Stuart Dootson11-Feb-10 8:45
professionalStuart Dootson11-Feb-10 8:45 
GeneralRe: Static Member Initialization Issue Pin
Skippums11-Feb-10 9:23
Skippums11-Feb-10 9:23 
GeneralRe: Static Member Initialization Issue Pin
Stuart Dootson11-Feb-10 9:37
professionalStuart Dootson11-Feb-10 9:37 
GeneralRe: Static Member Initialization Issue Pin
Emilio Garavaglia11-Feb-10 21:04
Emilio Garavaglia11-Feb-10 21:04 
GeneralRe: Static Member Initialization Issue Pin
Skippums11-Feb-10 9:45
Skippums11-Feb-10 9:45 
GeneralRe: Static Member Initialization Issue Pin
Yannick Le Thanh26-Apr-10 22:10
Yannick Le Thanh26-Apr-10 22:10 
QuestionProper way to add item to ListCtrl Pin
Manmohan2911-Feb-10 7:33
Manmohan2911-Feb-10 7:33 
tell me proper way to add an item to ListCtrl.
Here is my code:-
// stdafx.h
#define WM_MYMESSAGE (WM_USER+1)

-------------------------------------------------------

// MyThread.h

class CMyThread : public CWinThread
{
	DECLARE_DYNCREATE(CMyThread)
.
.
.
public:
	unsigned int f0ll, f1ll, f2ll, f3ll;
	unsigned int f0ul, f1ul, f2ul, f3ul;

public:
	afx_msg void MyMessageHandler(WPARAM, LPARAM);

-------------------------------------------------------

// MyThread.cpp
.
.
.
afx_msg void CMyThread::MyMessageHandler(WPARAM, LPARAM)
{
    // I have to add an item to ListCtrl here
}
BEGIN_MESSAGE_MAP(CMyThread, CWinThread)
	ON_THREAD_MESSAGE(WM_MYMESSAGE, MyMessageHandler)
END_MESSAGE_MAP()

-------------------------------------------------------

// IPMDlg.cpp
.
.
.
void CIPMDlg::OnBnClickedBrefreshdevices()
{
.
.
.
pRefreshThread = AfxBeginThread(RUNTIME_CLASS(CMyThread));
pRefreshThread->PostThreadMessage(WM_MYMESSAGE, 0, 0);
}
Future Lies in Present.
Manmohan Bishnoi

AnswerRe: Proper way to add item to ListCtrl Pin
Richard Andrew x6411-Feb-10 7:40
professionalRichard Andrew x6411-Feb-10 7:40 
GeneralRe: Proper way to add item to ListCtrl Pin
Manmohan2911-Feb-10 7:48
Manmohan2911-Feb-10 7:48 
AnswerRe: Proper way to add item to ListCtrl Pin
David Crow11-Feb-10 7:49
David Crow11-Feb-10 7:49 
QuestionMemory allocated between two checkpoints by a process Pin
BadJerry11-Feb-10 7:30
BadJerry11-Feb-10 7:30 
QuestionMulti Monitor Configuration in MFC/C++ Pin
krishna Srihsam11-Feb-10 7:22
krishna Srihsam11-Feb-10 7:22 
AnswerRe: Multi Monitor Configuration in MFC/C++ Pin
Emilio Garavaglia11-Feb-10 21:15
Emilio Garavaglia11-Feb-10 21:15 
AnswerRe: Multi Monitor Configuration in MFC/C++ Pin
normanS11-Feb-10 22:35
normanS11-Feb-10 22:35 
QuestionNeed to extract non-exported function of DLL Pin
glitteringsound11-Feb-10 7:22
glitteringsound11-Feb-10 7:22 
AnswerRe: Need to extract non-exported function of DLL Pin
Richard MacCutchan11-Feb-10 9:48
mveRichard MacCutchan11-Feb-10 9:48 
AnswerRe: Need to extract non-exported function of DLL Pin
Saurabh.Garg11-Feb-10 17:21
Saurabh.Garg11-Feb-10 17:21 
QuestionC++ application with dll in C:\WINDOWS\system32 problem Pin
chan1111-Feb-10 4:12
chan1111-Feb-10 4:12 
AnswerRe: C++ application with dll in C:\WINDOWS\system32 problem Pin
Richard Andrew x6411-Feb-10 7:37
professionalRichard Andrew x6411-Feb-10 7:37 
GeneralRe: C++ application with dll in C:\WINDOWS\system32 problem Pin
chan1111-Feb-10 8:21
chan1111-Feb-10 8:21 
QuestionDAO - Constraint Syntax Error! Pin
A&Ms11-Feb-10 3:23
A&Ms11-Feb-10 3:23 
QuestionHow do I use SetElementProperty with CDHtmlDialog? Pin
BigRedBetta11-Feb-10 3:03
BigRedBetta11-Feb-10 3:03 
QuestionWant to paste a file programatically (using C++) that's available in the clipboard Pin
PankajB11-Feb-10 1:55
PankajB11-Feb-10 1:55 
AnswerRe: Want to paste a file programatically (using C++) that's available in the clipboard Pin
Code-o-mat11-Feb-10 4:14
Code-o-mat11-Feb-10 4:14 

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.