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
C

CDRAIN

@CDRAIN
About
Posts
39
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Copy, Cut and Paste
    C CDRAIN

    I need to implement Copy,Cut & Paste to and from Windows Clipboard functionality on my C++ App, I see on web that I need to use functions: BOOL SetClipboardText(LPCTSTR pszText) int GetClipboardText(LPTSTR pszBuf, int nLength) but I can I get the selected text of a textbox or a selected object? Thanks

    C / C++ / MFC c++ question

  • Save Screenshot
    C CDRAIN

    Hi, I solve my problem with your help.:-D Thanks a lot. Bye

    C / C++ / MFC c++ help question

  • Save Screenshot
    C CDRAIN

    My programm is a project, an "analisy and reporter project", and I want to fit it with the MS Office's standards, so I must have a preview of the mail to send with the document attached (or empty if so). However I accept your suggest and I can try to perform this (initially) but then I like to obtain what I search. Thanks a lot for Help, it's very usefull. Bye

    C / C++ / MFC c++ help question

  • Save Screenshot
    C CDRAIN

    Thanks al lot for the help, now I'm able to save and send screenshot vie email. With the sample you send me I'm able to send email directly in "background", but how can I obtain an editable and pre-compiled mail on my email's Manager (Outlook Express) so that I can add text or modify something before send it? Thanks.

    C / C++ / MFC c++ help question

  • Save Screenshot
    C CDRAIN

    I don't have hbitmap I need to capture the screen, and than save the image with the code you post (thanks for this). - I need to know how to capture the screen bitmap? - Can you easilly post me code or an example of the IMAPI's use (or when I can I'll search an examle).. Thaks of all.

    C / C++ / MFC c++ help question

  • Save Screenshot
    C CDRAIN

    I need to save the screenshot in a file .bmp or jpg (better) and the post it via email. I don't have implement nothing code yet, have you sample code? How I've just said I need to post it in email message (compiled with the TO: address), is there an API function (like the HTML "mailto:mymail@my.com" or some simple command) to open the user's email App with this message ready to me sent? Thanks. -- modified at 6:53 Friday 15th June, 2007

    C / C++ / MFC c++ help question

  • Save Screenshot
    C CDRAIN

    Hi, I'm developing a Visual C++ App. I need to save my app's screenshot and save it as an image (to analize it in future). Can somebody help me to do this on a Button's click event? Thanks a lot

    C / C++ / MFC c++ help question

  • Ribbon Control
    C CDRAIN

    Hi, I'm developing an MFC Application, and I need to use the Main Ribbon Button (On the Top-Left Corner) without the Ribbon Control, because my app is poor of function. I'll attach on the bottom of the Main Ribbon Control a simple Toolbar. - Is it possible to use the main Ribbon button without the all the Ribbon? - Another possibility is to use the Ribbon with a fix Catalog of control. Is it possible? Thanks a lot

    C / C++ / MFC c++ help question

  • Progress and Timer
    C CDRAIN

    Thanks a lot for the reply, I just see your past reply but I will see if somebody can give me a solution for don't use another dialog (with progressbar).

    C / C++ / MFC question com tools

  • CTreeCtrl
    C CDRAIN

    Ok,you understand the OP, but I must deselect the previous item only if the new one have no child. How to control this on event handler?

    C / C++ / MFC question

  • CTreeCtrl
    C CDRAIN

    Thanks a lot it's work fine. Another question.. and If I need to set BOLD the item only if it haven't no child and reset it only if the new selected item hasn't no child too?? I hope to explain well my doubt.

    C / C++ / MFC question

  • Progress and Timer
    C CDRAIN

    I try to explain well my problem.. In my MainWnd I use an ActiveX control (a REprot Viewer) that need time to compute his job (load report) and I need the increment the progress bar while it's computing. I can't set a timer to update the progress bar in the MainWnd (as said here) because while the activeX is working the Timer event is not processed. If the solution you suggest work, I don't need the MyThread but I can manage directly the progress in the MainWnd, but it's wrong. I hope to explain well my problem, and because I use this solution. Thanks

    C / C++ / MFC question com tools

  • CTreeCtrl
    C CDRAIN

    Hi, I set BOLD the selected item (using TVIS_BOLD), but when I de-select it I'm not able to reset the previews font (Non-Bold). How can I perform this?

    C / C++ / MFC question

  • Progress and Timer
    C CDRAIN

    Thanks for the reply, I use SetTimer function you said but now my main problem is just how to comunicate with the pregress?? It's a global variable of my app, but can I access and use it from the thread? It's seems NO because nothing is performed by code that must increment it!! SO HOW DO THIS?

    C / C++ / MFC question com tools

  • Progress and Timer
    C CDRAIN

    I just post a message about this question Link but I don't obtain a good answer... I need to manage a Progress Bar created into my man app from a thread (while my app is using an ActiveX control). How can I do this? I must use a timer to increment the progress, but I can't use the CWnd::setTimer why my CThread class is derived from CWinThread an not from Cwnd, so how can I manage the Timer? Thanks for every observation.

    C / C++ / MFC question com tools

  • Thread and ON_WM_TIMER
    C CDRAIN

    Sorry, I made an error on the description of my problem: I can't use the ON_WM_TIMER message because my class MyThread isn't derived from the CWnd but from the CWinThread. How can I do this?

    C / C++ / MFC question

  • Thread and ON_WM_TIMER
    C CDRAIN

    Yes, the progress bar belong to the MainThread of my Application, and I need to manage it from my thread.

    C / C++ / MFC question

  • Thread and ON_WM_TIMER
    C CDRAIN

    Hi I need to manage a progressBar into MyThread class(CWinThread derived) using a timer but I can use the ON_WM_TIMER Event message. How can I do it? Using the SetTimer function but how? Thanks

    C / C++ / MFC question

  • ActiveX on Thread
    C CDRAIN

    Hi, just wrote a message but I don't get a solution to my problem so I retry: I need to manage an ActiveX component created on the mainWnd of my App, into a thread. In particular I need to fill a grid (as I just said, created in the MainWnd) from a thread (on the Run() function), so while the app go on. I pass to the thread the grid's pointer but at run time an Error messageBox appears that say "Invalid pointer value". How can I solve it? Thanks.

    C / C++ / MFC help question css com

  • Using UI-Thread
    C CDRAIN

    On regard [http://www.codeproject.com/script/comments/forums.asp?msg=1994839&forumid=1647&XtraIDs=1647&sd=20+Jan+2007&ed=20+Apr+2007&author=cdrain&stype=1#xx1994839xx](<a href=)[^]" rel="nofollow">comment Thanks a lot for the help... ok I'm able to create a UI-Thread from my MainWnd as I need to get the ActiveX functionality. My Activex must fill the grid contained on the MainWnd, while the progressBar is incremented. So I set the timer, that increment the progressbar on the OnTimer event, and create the ui-thread using this code I use: thread = new CMyThread(); //Set parameter I need on the ActiveX // Include the pointer to the grid (is it right?) thread->GripPointer= GridPointer; thread->par2 = par2; thread->par3 = par3; thread->CreateThread(); On my ui-thread code i fill the grid on the Run() method and at the end of the operation I PostMessage(..) to the MainWnd and here I close the ui-thread sending a PostMessage(WM_INFORM_CLOSE, 0, 0);. At Run-Time it gives me an error "Not valid pointer' when i call the function to fill the grid on the ui-thread. WHY? - Where I need to use the ::CoMarshalInterThreadInterfaceInStream(...) and ::CoGetInterfaceAndReleaseStream(...) method you said, and witch is they're scope? (Sorry I'm newer in this use ) - Have you an example code? Another question: But can I manage a graphic component of the MainWnd (the grid) from the ui-thread?? Is this my problem? Thanks a lot

    C / C++ / MFC help com question css design
  • Login

  • Don't have an account? Register

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