Click here to Skip to main content
15,917,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Same code takes different times!! Pin
Kiran Satish16-Jun-08 16:19
Kiran Satish16-Jun-08 16:19 
AnswerRe: Same code takes different times!! Pin
Alan Balkany17-Jun-08 5:02
Alan Balkany17-Jun-08 5:02 
GeneralRe: Same code takes different times!! Pin
Kiran Satish18-Jun-08 8:51
Kiran Satish18-Jun-08 8:51 
GeneralRe: Same code takes different times!! Pin
Alan Balkany19-Jun-08 3:22
Alan Balkany19-Jun-08 3:22 
QuestionWinSock Remote Connection Pin
Knight Rider16-Jun-08 11:29
Knight Rider16-Jun-08 11:29 
Questionwin32 user-drawn menus Pin
greghint16-Jun-08 6:33
greghint16-Jun-08 6:33 
AnswerRe: win32 user-drawn menus Pin
James R. Twine16-Jun-08 8:01
James R. Twine16-Jun-08 8:01 
GeneralRe: win32 user-drawn menus Pin
greghint16-Jun-08 9:25
greghint16-Jun-08 9:25 
Thanks James... that must be it! I've made the following modification, but I'm still getting the same result...
MenuItem * myItem = (MenuItem *) LocalAlloc(LMEM_FIXED, sizeof(MenuItem)+256);
myItem = &item;
MENUITEMINFO mii;
ZeroMemory(&mii, sizeof(mii));
mii.cbSize = sizeof(mii);
mii.fMask = MIIM_FTYPE | MIIM_DATA;
mii.fType = MFT_OWNERDRAW;
mii.dwItemData = (ULONG_PTR) myItem;


The function containing this code receives a MenuItem object as a parameter (item). Should I be doing this allocation elsewhere?

Thanks again...

Greg
GeneralRe: win32 user-drawn menus Pin
zildjohn0117-Jun-08 2:09
zildjohn0117-Jun-08 2:09 
GeneralRe: win32 user-drawn menus Pin
greghint17-Jun-08 9:35
greghint17-Jun-08 9:35 
GeneralRe: win32 user-drawn menus [modified] Pin
greghint18-Jun-08 8:00
greghint18-Jun-08 8:00 
QuestionMoving desktop shortcuts to desired position Pin
Manfred Staiger16-Jun-08 5:13
Manfred Staiger16-Jun-08 5:13 
QuestionCRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Vaclav_16-Jun-08 5:13
Vaclav_16-Jun-08 5:13 
AnswerRe: CRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Chris Losinger16-Jun-08 6:54
professionalChris Losinger16-Jun-08 6:54 
GeneralRe: CRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Vaclav_16-Jun-08 7:13
Vaclav_16-Jun-08 7:13 
GeneralRe: CRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Vaclav_16-Jun-08 7:16
Vaclav_16-Jun-08 7:16 
AnswerRe: CRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Stephen Hewitt16-Jun-08 15:44
Stephen Hewitt16-Jun-08 15:44 
GeneralRe: CRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Vaclav_16-Jun-08 17:28
Vaclav_16-Jun-08 17:28 
QuestionCreating an embeded window in Internet Explorer Pin
chatko16-Jun-08 2:30
chatko16-Jun-08 2:30 
AnswerRe: Creating an embeded window in Internet Explorer Pin
ThatsAlok16-Jun-08 3:22
ThatsAlok16-Jun-08 3:22 
QuestionProblem with a program that does Copy-Paste functionality. Pin
ritz123416-Jun-08 2:26
ritz123416-Jun-08 2:26 
AnswerRe: Problem with a program that does Copy-Paste functionality. Pin
CPallini16-Jun-08 2:40
mveCPallini16-Jun-08 2:40 
GeneralRe: Problem with a program that does Copy-Paste functionality. Pin
ritz123416-Jun-08 2:57
ritz123416-Jun-08 2:57 
AnswerRe: Problem with a program that does Copy-Paste functionality. Pin
David Crow16-Jun-08 3:30
David Crow16-Jun-08 3:30 
GeneralRe: Problem with a program that does Copy-Paste functionality. Pin
ritz123416-Jun-08 3:43
ritz123416-Jun-08 3:43 

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.