Windows 32 GUI Right click calling functions

I plan on making a Spanish Study/quizzes windows 32 app and I would like to use the menu items but don't know how to i would like to use right click to call a function that will pop up below the menu like the verb study guide would be most if not all spanish verbs ....

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57


/*  This function is called by the Windows function DispatchMessage()  */

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch (message)                  /* handle the messages */
    {

case WM_CREATE:{

  HMENU hMenuBar=CreateMenu();
  HMENU hVerbq =CreateMenu();
  HMENU hNounq=CreateMenu();



     AppendMenu(hMenuBar, MF_POPUP,(UINT_PTR)hVerbq,"Verb's Quizzes");
     AppendMenu(hMenuBar, MF_POPUP,NULL,"Verb Study");

     AppendMenu(hMenuBar , MF_POPUP,(UINT_PTR)hNounq,"Noun Quizzes");
      AppendMenu(hMenuBar, MF_POPUP,NULL,"Noun Study");

     AppendMenu(hMenuBar, MF_POPUP,NULL,"Sentence Quizzes");
              //DROP DOWN FOR VERB QUIZZES
    AppendMenu(hVerbq,MF_STRING,NULL,"Verb Quiz #1" );
             

             //Drop down for Noun Quizzes
 AppendMenu(hNounq,MF_STRING,NULL ,"Noun Quiz #1");






             SetMenu(hwnd, hMenuBar);


   break;
  }
        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }
case WM_RBUTTONDOWN:{
// this is where i have no clue what to do 




}
    return 0;
}
Last edited on
Last edited on
Topic archived. No new replies allowed.