Click here to Skip to main content
15,911,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Drawing an arrow Pin
kfaday19-Jun-04 7:07
kfaday19-Jun-04 7:07 
GeneralRe: Drawing an arrow Pin
palbano19-Jun-04 7:14
palbano19-Jun-04 7:14 
GeneralRe: Drawing an arrow Pin
kfaday19-Jun-04 7:38
kfaday19-Jun-04 7:38 
GeneralRe: Drawing an arrow Pin
palbano19-Jun-04 9:48
palbano19-Jun-04 9:48 
GeneralRe: Drawing an arrow Pin
kfaday19-Jun-04 11:21
kfaday19-Jun-04 11:21 
Generalrename a file Pin
Jason876519-Jun-04 4:28
Jason876519-Jun-04 4:28 
GeneralRe: rename a file Pin
PJ Arends19-Jun-04 6:48
professionalPJ Arends19-Jun-04 6:48 
Generalpopup menu problem Pin
udi444419-Jun-04 3:49
udi444419-Jun-04 3:49 
hello evryone
i'm triening to builed a little popup menu for my app , this app has allready got a toolbar menu , and i'm trieng to builed a popupmenu that will be shawn on right click .
hers what i do :
case WM_RBUTTONUP:
//get current position of mouse curser
thisPoint.x = LOWORD(lParam); // x co-ordinate
thisPoint.y = HIWORD(lParam); // y co-ordinate
// Load the menu resource.
if ((hmenu = LoadMenu(hInst, "POPUPMENU")) == NULL)
return(1);
// TrackPopupMenuEx cannot display the menu bar so get
// a handle to the first shortcut menu.
hmenuTrackPopup = GetSubMenu(hmenu, 0);

TrackPopupMenuEx(hmenuTrackPopup,
TPM_LEFTALIGN | TPM_TOPALIGN |TPM_LEFTBUTTON,
thisPoint.x, thisPoint.y, hwnd, NULL);
// Destroy the menu.
DestroyMenu(hmenu);
return(0);

now - the hmenu and the hmenuTrackPopup are 2 HMENU structures that i declared in the WndProc non of them is pointing to the toolbar menu that i intilized when i initiliazed my main window ( wc.lpszMenuName = szAppName ).
the "POPUPMENU" is the menu that i allredy builet and is declared in my resource.h
i'm working in visual C++ ( not .NET ).
when i'm clicking the right mouse button i get nothing - can someone please help in telling me what am i doing wrong ????
or can reffer me to a good example on how to builed popup menu ?
thanx alot
GeneralRe: popup menu problem Pin
kfaday19-Jun-04 5:11
kfaday19-Jun-04 5:11 
Questionhow to create user in windows using vc++ Pin
ThatsAlok19-Jun-04 3:03
ThatsAlok19-Jun-04 3:03 
AnswerRe: how to create user in windows using vc++ Pin
ThatsAlok19-Jun-04 3:43
ThatsAlok19-Jun-04 3:43 
GeneralWhen I create a vector of GraphicsPath class and its iterator, A compilation error occurs ! Pin
Gem19-Jun-04 3:02
Gem19-Jun-04 3:02 
GeneralCreating DSN Programatically Pin
Imtiaz Murtaza19-Jun-04 2:09
Imtiaz Murtaza19-Jun-04 2:09 
GeneralRe: Creating DSN Programatically Pin
Ghazi H. Wadi19-Jun-04 3:36
Ghazi H. Wadi19-Jun-04 3:36 
GeneralRe: Creating DSN Programatically Pin
palbano19-Jun-04 7:17
palbano19-Jun-04 7:17 
GeneralHI MR VC Pin
Anonymous19-Jun-04 1:37
Anonymous19-Jun-04 1:37 
QuestionHow can I disable PowerOff key? Pin
MiCROHARD19-Jun-04 1:33
MiCROHARD19-Jun-04 1:33 
AnswerRe: How can I disable PowerOff key? Pin
Ghazi H. Wadi19-Jun-04 2:00
Ghazi H. Wadi19-Jun-04 2:00 
GeneralEncryption Pin
sschilachi19-Jun-04 1:11
sschilachi19-Jun-04 1:11 
GeneralRe: Encryption Pin
palbano19-Jun-04 7:11
palbano19-Jun-04 7:11 
GeneralRe: Encryption Pin
Ravi Bhavnani19-Jun-04 17:28
professionalRavi Bhavnani19-Jun-04 17:28 
GeneralRe: Encryption Pin
Henry miller21-Jun-04 3:49
Henry miller21-Jun-04 3:49 
QuestionHow to Insert Combo in MS Datagrid Ctrl Pin
Sumit Kapoor18-Jun-04 23:53
Sumit Kapoor18-Jun-04 23:53 
GeneralCMonthCalCtrl Pin
sschilachi18-Jun-04 23:20
sschilachi18-Jun-04 23:20 
GeneralRe: CMonthCalCtrl Pin
palbano19-Jun-04 7:05
palbano19-Jun-04 7:05 

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.