baking multiple textures in blender cycles

i have a question about baking textures in cycles example a window with glass and wood frame around it its one object how do i bake both textures on one texture ?

any help would be great thanks