Guest User

Untitled

a guest
Jan 15th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. IDC_MYCURSOR CURSOR "MYCURSOR.CUR"
  2.  
  3. #define IDC_MYCURSOR 103
  4.  
  5. HCURSOR hCur = LoadCursor(hInstance, IDC_MYCURSOR);
  6.  
  7. wxCursor( "#1", wxBITMAP_TYPE_CUR_RESOURCE );
  8.  
  9. #define STR(value) #value
  10. #define RES(value) wxT("#") wxT(STR(value))
  11. ...
  12. wxCursor cur(RES(IDC_MYCURSOR), wxBITMAP_TYPE_CUR_RESOURCE);
  13.  
  14. switch ( kind )
  15. {
  16. case wxBITMAP_TYPE_CUR_RESOURCE:
  17. hcursor = ::LoadCursor(wxGetInstance(), filename.t_str());
  18. break;
  19. ...
  20.  
  21. wxCursor cur(MAKEINTRESOURCE(IDC_MYCURSOR), wxBITMAP_TYPE_CUR_RESOURCE);
  22.  
  23. #include <wx/cpp.h>
  24.  
  25. wxCursor cursor(wxSTRINGIZE(IDC_CURSOR));
  26.  
  27. my_cursor CURSOR "mycursor.cur"
  28.  
  29. wxCursor(my_cursor)
Add Comment
Please, Sign In to add comment