Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.0 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: loginit.cxx
  3. *
  4. * Copyright (c) 1997 Microsoft Corporation
  5. *
  6. \**************************************************************************/
  7. #include <stdio.h>
  8. #include <string.h>
  9. #include <math.h>
  10. #include <sys/types.h>
  11. #include <stdlib.h>
  12. #include <time.h>
  13. #include "uidemo.hxx"
  14. #include "context.hxx"
  15. static MTKWIN *mtkWin;
  16. /******************** MAIN SEQUENCE *********************************\
  17. *
  18. \**************************************************************************/
  19. #if 0
  20. static MTKWIN *CreateMainWindow()
  21. {
  22. MTKWIN *win;
  23. // Set window size and position
  24. bResSwitch = FALSE;
  25. UINT winConfig = 0;
  26. //mf: !!! mtk takes FULLSCREEN as meaning it can take over palette, so need
  27. // palette flags for Config(). Oh, and think it also means ON_TOP, so need
  28. // another flag for that.
  29. winConfig |= MTK_FULLSCREEN | MTK_NOBORDER;
  30. win = new MTKWIN();
  31. if( !win )
  32. return NULL;
  33. // Configure and create the window (mf: this 2 step process of constructor
  34. // and create will allow creating 'NULL' windows
  35. // Create the window
  36. if( ! win->Create( "Demo", &winSize, &winPos, winConfig, NULL ) ) {
  37. delete win;
  38. return NULL;
  39. }
  40. win->SetReshapeFunc(Reshape);
  41. return win;
  42. }
  43. #endif
  44. BOOL RunContextMenuSequence( ENV *pEnv )
  45. {
  46. SS_DBGPRINT( "RunContextMenuSequence()\n" );
  47. // Create a window to run the menus in. This is so during testing, I can
  48. // click anywhere on the screen and do context there. But not sure if can
  49. // do this yet, so just hardcode position for now.
  50. #if 0
  51. //mf: using this and other externs from logon.cxx...
  52. mtkWin = CreateLogonWindow();
  53. if( !mtkWin )
  54. return FALSE;
  55. #endif
  56. IPOINT2D pos = { 50, 50 };
  57. // ISIZE size = { 100, 200 };
  58. ISIZE size = { 200, 400 };
  59. Draw3DContextMenu( &pos, &size, "menu.bmp" );
  60. return TRUE; // mf: change to point to the selected user...
  61. }