![]()  | 
 
My Component within Markup | 
 
    Post Reply  
   | 
  
| Author | |
   
   BobWansink  
   
   Groupie  
   Joined: 24 January 2008 Status: Offline Points: 59  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: My Component within MarkupPosted: 10 December 2008 at 4:41am  | 
 
| 
   
    
   
Hi! 
   
  I'd like to place one of my CWnd derived panels inside a (created) CXTPMarkupObject. Is this possible? If not, will this functionality be added? [edit] I just thought of another question: What is the default setup for XAML in resource files? So far, I've created a Custom type ("XAML") and added a *.XAML file to it. Do i have to use FindResource/LoadResource with RT_RCDATA? if so, how do I use the HGLOBAL that function returns? [/edit] Thanks! Bob  | 
 |
| 
   
     
          Product: Xtreme ToolkitPro (MFC) version 13.0.0
 
   
  Platform: Windows (32bit) - XP - Vista Language: Visual C++  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 10 December 2008 at 3:24pm | 
 
| 
   
    
   Hi,
 
   
  You can use HTML type: 
IDR_SPIRAL              HTML    MOVEABLE PURE   "res\\spiral.xml" 
 HRSRC hRsrc = ::FindResource(hInstance, lpszResourceName, RT_HTML); 
if (hRsrc == NULL) return FALSE;  HGLOBAL hGlobal = LoadResource(hInstance, hRsrc); 
if (hGlobal == NULL) return FALSE;  LPCSTR pData = (LPCSTR)LockResource(hGlobal); 
   if (pData == NULL) return FALSE;  | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   BobWansink  
   
   Groupie  
   Joined: 24 January 2008 Status: Offline Points: 59  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 11 December 2008 at 3:10am | 
 
| 
   
    
   thanks!
    
   
   | 
 |
| 
   
     
          Product: Xtreme ToolkitPro (MFC) version 13.0.0
 
   
  Platform: Windows (32bit) - XP - Vista Language: Visual C++  | 
 |
![]()  | 
 |
   
   BobWansink  
   
   Groupie  
   Joined: 24 January 2008 Status: Offline Points: 59  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 11 December 2008 at 6:32am | 
 
| 
   
    
   I'm still trying to place one of my CWnd derived panels inside a
(created) CXTPMarkupObject... Is this possible? 
    
   
   | 
 |
| 
   
     
          Product: Xtreme ToolkitPro (MFC) version 13.0.0
 
   
  Platform: Windows (32bit) - XP - Vista Language: Visual C++  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 11 December 2008 at 7:18am | 
 
| 
   
    
   No :(
 
   
  You can add some Border object to Markup, render markup, determine posiotn of this Border and then move your CWnd panel to this position. 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   BobWansink  
   
   Groupie  
   Joined: 24 January 2008 Status: Offline Points: 59  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 11 December 2008 at 9:33am | 
 
| 
   
    
   Thanks oleg.  
   
  I like the workaround! will it be added sometime in the future?  | 
 |
| 
   
     
          Product: Xtreme ToolkitPro (MFC) version 13.0.0
 
   
  Platform: Windows (32bit) - XP - Vista Language: Visual C++  | 
 |
![]()  | 
 |
   
   Moritz  
   
   Groupie  
   Joined: 22 December 2005 Location: Germany Status: Offline Points: 11  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 31 December 2008 at 9:47am | 
 
| 
   
    
   This would be like some child alignment manager, something that we are missing in the MFC and which would be very usefull especially for designing dynamic dialog layouts for example. combined with the drawing power of markup, this would be great to even have nice bitmap background windows with dynamically aligned transparent child windows in it.
 
   
  A child window alignment manager would be in general a good addition to the XTResize functionality, maybe even combined with markup. 
Greetings Moritz Leutenecker 
    | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |