parameters: (hwnd,msg,wparam,lparam)
docstring: Handles messages from the desktop name dialog box
docstring_summary: Handles messages from the desktop name dialog box
docstring_tokens: Handles messages from the desktop name dialog box
function: def desktop_name_dlgproc(hwnd,msg,wparam,lparam):
      """ Handles messages from the desktop name dialog box """
      if msg in (win32con.WM_CLOSE,win32con.WM_DESTROY):
          win32gui.DestroyWindow(hwnd)
      elif msg == win32con.WM_COMMAND:
          if wparam == win32con.IDOK:
              desktop_name=win32gui.GetDlgItemText(hwnd, 72)
              print 'new desktop name: ',desktop_name
              win32gui.DestroyWindow(hwnd)
              create_desktop(desktop_name)
              
          elif wparam == win32con.IDCANCEL:
              win32gui.DestroyWindow(hwnd)
function_tokens: def desktop_name_dlgproc ( hwnd , msg , wparam , lparam ) : if msg in ( win32con . WM_CLOSE , win32con . WM_DESTROY ) : win32gui . DestroyWindow ( hwnd ) elif msg == win32con . WM_COMMAND : if wparam == win32con . IDOK : desktop_name = win32gui . GetDlgItemText ( hwnd , 72 ) print 'new desktop name: ' , desktop_name win32gui . DestroyWindow ( hwnd ) create_desktop ( desktop_name ) elif wparam == win32con . IDCANCEL : win32gui . DestroyWindow ( hwnd )