Click here to Skip to main content
15,798,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSecurity Check Stack overflow compiler GS option Pin
ForNow16-May-22 3:16
ForNow16-May-22 3:16 
AnswerRe: Security Check Stack overflow compiler GS option Pin
Victor Nijegorodov16-May-22 4:08
Victor Nijegorodov16-May-22 4:08 
GeneralRe: Security Check Stack overflow compiler GS option Pin
ForNow16-May-22 4:22
ForNow16-May-22 4:22 
QuestionHow can i define cardinalization in c++? Pin
Member 1563777116-May-22 2:38
Member 1563777116-May-22 2:38 
AnswerRe: How can i define cardinalization in c++? Pin
Mircea Neacsu16-May-22 2:54
Mircea Neacsu16-May-22 2:54 
GeneralRe: How can i define cardinalization in c++? Pin
David Crow16-May-22 3:13
David Crow16-May-22 3:13 
AnswerRe: How can i define cardinalization in c++? Pin
Randor 16-May-22 5:25
professional Randor 16-May-22 5:25 
QuestionConverting from MFC to Native Windows C Pin
ForNow12-May-22 13:48
ForNow12-May-22 13:48 
I have a number of ownerdraw controls and wanted to put the DrawItem function code in one function. Richard MacCutchan gave me the idea of moving code to my C DLL and have the Drawitem call it.

I had to remove a lot of MFC stuff to get the main body of code to my DLL most of it was straight forward except for Cwnd::GetStyle is the windows Call for that GetWindowLong(HWND,GWL_STYLE)

so for the CStatic Ownerdraw code which I have

C++
 DWORD dwStyle = phwnd->GetStyle();
// Don't process '&' prefix sequences
if (dwStyle & SS_NOPREFIX)
nFormat |= DT_NOPREFIX;


LPDRAWITEMSTRUCT lpdi;
I could subsitute DWORD dwStyle = GetWindowLong(lpdi->hwndItem,GWL_STYLE);
AnswerRe: Converting from MFC to Native Windows C Pin
Richard MacCutchan13-May-22 1:29
mveRichard MacCutchan13-May-22 1:29 
GeneralRe: Converting from MFC to Native Windows C Pin
ForNow13-May-22 2:34
ForNow13-May-22 2:34 
GeneralRe: Converting from MFC to Native Windows C Pin
Richard MacCutchan13-May-22 3:05
mveRichard MacCutchan13-May-22 3:05 
GeneralRe: Converting from MFC to Native Windows C Pin
ForNow13-May-22 4:10
ForNow13-May-22 4:10 
GeneralRe: Converting from MFC to Native Windows C Pin
Richard MacCutchan13-May-22 4:48
mveRichard MacCutchan13-May-22 4:48 
Questionmy problem is output for this weight conversion pounds to kilogram that starts from 100 to 300. Pin
Member 1563347212-May-22 1:17
Member 1563347212-May-22 1:17 
AnswerRe: my problem is output for this weight conversion pounds to kilogram that starts from 100 to 300. Pin
OriginalGriff12-May-22 1:26
mvaOriginalGriff12-May-22 1:26 
QuestionRe: my problem is output for this weight conversion pounds to kilogram that starts from 100 to 300. Pin
Member 1563347212-May-22 1:43
Member 1563347212-May-22 1:43 
AnswerRe: my problem is output for this weight conversion pounds to kilogram that starts from 100 to 300. Pin
Richard Deeming12-May-22 1:54
mveRichard Deeming12-May-22 1:54 
AnswerRe: my problem is output for this weight conversion pounds to kilogram that starts from 100 to 300. Pin
Michael Hulthin12-May-22 2:06
Michael Hulthin12-May-22 2:06 
GeneralRe: my problem is output for this weight conversion pounds to kilogram that starts from 100 to 300. Pin
Member 1563347212-May-22 2:21
Member 1563347212-May-22 2:21 
GeneralRe: my problem is output for this weight conversion pounds to kilogram that starts from 100 to 300. Pin
Member 1563347212-May-22 2:44
Member 1563347212-May-22 2:44 
GeneralRe: my problem is output for this weight conversion pounds to kilogram that starts from 100 to 300. Pin
Michael Hulthin12-May-22 2:59
Michael Hulthin12-May-22 2:59 
GeneralRe: my problem is output for this weight conversion pounds to kilogram that starts from 100 to 300. Pin
Member 1563347212-May-22 3:16
Member 1563347212-May-22 3:16 
Questionhow to capture mouse movement and click in windows service Pin
Shkuratov U11-May-22 17:57
Shkuratov U11-May-22 17:57 
AnswerRe: how to capture mouse movement and click in windows service Pin
Richard MacCutchan11-May-22 22:43
mveRichard MacCutchan11-May-22 22:43 
AnswerRe: how to capture mouse movement and click in windows service Pin
Richard Deeming11-May-22 22:44
mveRichard Deeming11-May-22 22:44 

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.