Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

houari_id

@houari_id
About
Posts
34
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to put more than 256 color bitmap in dialog?
    H houari_id

    ah yes, i am using VS 6.0 ^^ and how can add them using resource script? thanks...

    -Houari

    C / C++ / MFC graphics tutorial question learning

  • how to put more than 256 color bitmap in dialog?
    H houari_id

    Hi All, In the dialog box, I can put a bitmap by importing the bitmap in the Resource View. However, as far as I know (and tried), it is limited to 256 color bitmap only. Is it possible to put higher color space bitmap such as 24-bit for picture in the dialog box? Thank you

    -Houari

    C / C++ / MFC graphics tutorial question learning

  • use GDI+ to change text color [modified]
    H houari_id

    Hi All, I use this code to change the color of some words in the text, using GDI+ (it based on the example from MSDN). I want to change the color of words in range specified by the charRanges. But the result is kind of weird, the words are not displayed as specified by the range, and the position is moving to right-bottom a little bit. --edit-- I think I know the problem. The text displayed in the new region is trimmed and positioned based on the region's size. So, I wonder if there any other way to do this? Below is some of the code... If you have any experience with GDI+ pls help me... Thank you! ... // Three ranges of character positions within the string int p[3] = {4,17,39}; int q[3] = {5,3,13}; CharacterRange charRanges[3] = { CharacterRange(4, 5), CharacterRange(17, 3), CharacterRange(39, 13), }; // Font and string format used to apply to string when drawing Font myFont(L"Times New Roman", 12); StringFormat strFormat; StringFormat stringFormat; // Other variables Region* pCharRangeRegions; // pointer to CharacterRange regions short i; // loop counter int count; // number of character ranges set CString strMsg = "The quick, brown fox easily jumps over the lazy dog."; LPWSTR string; string = CStringToWchar(strMsg); // Set three ranges of character positions. strFormat.SetMeasurableCharacterRanges(3, charRanges); // Get the number of ranges that have been set, and allocate memory to // store the regions that correspond to the ranges. count = strFormat.GetMeasurableCharacterRangeCount(); pCharRangeRegions = new Region[count]; // Get the regions that correspond to the ranges within the string. // Then draw the string and show the regions. graphics.MeasureCharacterRanges(string, -1, &myFont, layoutRect, &strFormat, count, pCharRangeRegions); RectF *enclosingRect; enclosingRect = new RectF[count]; graphics.DrawString(string, -1,&myFont, layoutRect, &strFormat, &blueBrush); for ( i = 0; i < count; i++) { string = CStringToWchar(strMsg.Mid(p[i],q[i])); graphics.SetClip(&pCharRangeRegions[i]); graphics.GetClipBounds(&enclosingRect[i]); graphics.DrawString(string, -1, &myFont, enclosingRect[i], &stringFormat, &redBrush); } -- modified at 4:28 Thursday 26th July, 2007

    -Houari

    C / C++ / MFC graphics help winforms performance tutorial

  • Multiple bitmap in VMR9
    H houari_id

    ah yes... that was in my mind too... ^^ but I need the position of my bitmaps in the video to be independently changed anytime I want. is there any way to do this? I was also failed by using CDC in the same picture control with the vmr video (the CDC drawing is overlapped by the video...) -_- thanks

    -Houari

    C / C++ / MFC graphics tutorial question

  • Multiple bitmap in VMR9
    H houari_id

    Hi all... Is it possible to mix more than one bitmap in VMR9 using MixerBitmap in one time? I've tried to create two IVMRMixerBitmap instances, two SetInitialAlphaBitmap functions (as in BmpMix9 example), but only the last one is displayed. Thank you...

    -Houari

    C / C++ / MFC graphics tutorial question

  • How to use IMediaSeeking in filter's pin?
    H houari_id

    Actually I found out that I can not use seeking for the AVC decoder (by using GetCapabilities). So, I think maybe it is possible to use seeking directly to the demux filter. Is it possible?

    -Houari

    C / C++ / MFC tutorial data-structures help question

  • Display Series of numbers in an edit box of MFC
    H houari_id

    You can use GetDlgItem(IDC_OF_TEXTBOX)->SetWindowText(m_putStringHere); instead...

    -Houari

    C / C++ / MFC question c++

  • how to change look of Screen so tht it will give XP look?
    H houari_id

    You can create an XML file with the following content: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity processorArchitecture="x86" version="5.1.0.0" type="win32" name="XPLooks" /> <description>Test Application</description> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" processorArchitecture="x86" /> </dependentAssembly> </dependency> </assembly> Save the file as, for example, xptheme.xml Then go to ResourceView and import this file. In Custom Resource Type, fill in "24" in Resource type. Finally, set the ID to "1".

    -Houari

    C / C++ / MFC help tutorial question

  • How to use IMediaSeeking in filter's pin?
    H houari_id

    Hi All.. I use DirectShow to play raw H.264 file with the following graph: [source]--[cyberlink demux]--[cyberlink H.264/AVC decoder]--[vmr9 renderer] My problem is that I can not use IMediaSeeking to set the position. I think it should be possible to seek the video using the demux filter, but I don't know how :confused: (just get into DirectShow a couple weeks ago :-O ). It would be nice if you have the example, or any site that has it. I was looking at MSDN forum and found that we can put IMediaSeeking on the pin. What does it mean? How to do that? Bunch of thanks in advance! :)

    -Houari

    C / C++ / MFC tutorial data-structures help question

  • How to control the frame rate in DirectShow?
    H houari_id

    Hi I know that function too... but it seems that it is not that easy to change the frame rate. Perhaps I should change the question: how to control the frame rate using DirectShow? thank you

    -Houari

    C / C++ / MFC question data-structures regex tutorial

  • How to control the frame rate in DirectShow?
    H houari_id

    Hi all.. Well, as in the subject: how can I control the frame rate of a video in DirectShow? I am using DirectShow to play a video and blend a rectangle that moves along the video, which positions are stored in an array. I use SetTimer() to change the rectangle's position, but it seems that the timepoint in the timer doesn't match the frame rate of the video. So I'm thinking of controlling the frame rate of the video instead.. Thank you in advance... -- modified at 7:20 Wednesday 21st March, 2007

    -Houari

    C / C++ / MFC question data-structures regex tutorial

  • How to clear DC content?
    H houari_id

    hmm... actually I make an application to mark something on top of a media player so, the main window contains the media player activeX control, and I put transparent modeless dialog on top of it. I wonder how to redraw the player in main window... :confused:

    -Houari

    C / C++ / MFC question tutorial learning

  • How to clear DC content?
    H houari_id

    It works using Invalidate and updatewindow... thanks! However, it seems that it does not work for the transparent dialog (using WS_EX_TRANSPARENT). The dialog becomes opaque if I use those function... Any idea? Thanks!

    -Houari

    C / C++ / MFC question tutorial learning

  • How to clear DC content?
    H houari_id

    Hi All.. I paint several lines in dialog using pDC->LineTo(a,b) (where: CDC *pDC = this->GetDC() ) After finish using it, I want to remove it from the screen and draw another things. How can I clear the dialog's DC? (of course, not by hide and show the dialog :) ) Thank you in advance... ps. i'm too lazy too search the boards... so, it would be ok if you have the link to the same question in this board... ^^

    -Houari

    C / C++ / MFC question tutorial learning

  • How to access CDialog from an MDI view [modified]
    H houari_id

    thank you mr ravi... I just get your point about referencing from view class. so instead, I just use OnPaint() function in the CMyDialog to call the function to display the image, and it works fine.. thanks a lot... :)

    -Houari

    C / C++ / MFC question tutorial

  • How to access CDialog from an MDI view [modified]
    H houari_id

    Dear all.. How can I use GetDC() in a dialog from an MDI CView? I mean, I have image data in CMyMDIView, and I want to show it in a dialog (CMyDialog). I've tried this: CMyDialog *pMyDialog = (CMyDialog*) AfxGetMainWnd(); CDC *pDC = pMyDialog->m_StaticImage.GetDC(); but the second line doesn't work... I also tried to call the function in CMyDialog that calls CDC from CMyMDIView, like this: void MyMDIView::OnDraw(CDC* pDC) { CMyDialog *pMyDialog = (CMyDialog*) AfxGetMainWnd(); pMyDialog->DoLoadImage(); ... } where DoLoadImage() contains CDC *pDC = m_StaticImage.GetDC(); but it also doesn't work.. I really bad at these pointer things :(... Thank you in advance..

    -Houari

    C / C++ / MFC question tutorial

  • animated image transition
    H houari_id

    Hi all... Is there any library that can be used to perform animated image transition, like those on power point presentation? For example, when I load several JPG files, the dialog shows the first image. If I click, say, "Next picture" button, the dialog shows the next image with animated transition like blurring or sliding, etc. Thank you...

    -Houari

    C / C++ / MFC tutorial question

  • How to set a .ico as default icon to my application
    H houari_id

    Hi You can import the x.ico into the resources. Then delete existing IDR_MAINFRAME icon, and rename your new icon to IDR_MAINFRAME.

    -Houari

    C / C++ / MFC tutorial

  • Convert CString to const char * in embedded VC++
    H houari_id

    Waaa!! It works!! :) Thank you very much Viorel... and the others too... thank you... Houari

    C / C++ / MFC help c++ hardware

  • Convert CString to const char * in embedded VC++
    H houari_id

    No, both data type TCHAR and wchar_t are not working, this error still there for both: cannot convert parameter 1 from 'unsigned short *' to 'const char *' Or is it something wrong with my embedded VC++ ? :(( Houari

    C / C++ / MFC help c++ hardware
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups