Inside UIR editor use Code >> Generate >> Menu callbacks menu item
The following online help argument describes all code generation facilities: I suggest you to read them carefully as it describes all features CVI editor includes for code generation.
Using LabWindows/CVI >> Developing a Graphical User Interface >> Editing a User Interface >> Generating code from the GUI