Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Pavel Kotrc

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Reference types in application settings

    Hi, I am using .NET 4 and I have some troubles with application settings. Using simple value types (int, string, Point, Size etc.) and their default values is OK, but when I add a reference type to...
  2. DashStyle pattern gets corrupted when scrolling

    Hi,

    in my VS 2010/.NET 4.0 application I am drawing a sort of focus rectangle using ControlPaint.DrawBorder with the ButtonBorderStyle.Dotted flag. However, I noticed that when only part of the...
  3. Replies
    8
    Views
    1,696

    Re: Why does CopyImage fail?

    Another update: when I try using a DIB instead of a DDB (by calling CreateDIBSection instead of CreateCompatibleBitmap), CopyImage always passes but GetLastError after it returns always 8.
  4. Replies
    8
    Views
    1,696

    Re: Why does CopyImage fail?

    Thanks for an interesting link, but I am running Windows XP :(
  5. Replies
    8
    Views
    1,696

    Re: Why does CopyImage fail?

    I tried setting the flags to zero, with no effect. And now I'm even more confused - the program created and successfully copied 95 bitmaps. Then it created two more, the CopyImage method returned a...
  6. Replies
    8
    Views
    1,696

    Re: Why does CopyImage fail?

    I don't want to put the bitmap to a DC (to display it somewhere). I need to copy the bitmap data in the memory, so that I have two independent copies of it.
  7. Replies
    8
    Views
    1,696

    Why does CopyImage fail?

    Hi, in my program I create several dozen of quite big monochrome bitmaps (approx. 6000 x 1500 pixels). This is done in a standard way by calling


    CBitmap bmp;
    bmp.CreateCompatibleBitmap( &memDC,...
  8. Re: Initialising CPrintDialog with my own DevMode....

    According to Microsoft KB article 193103, the answer is yes, the stored DEVMODE handle has to be updated each time you call
    CPrintDialog::DoModal because it discards the handle we passed into it...
  9. Re: Initialising CPrintDialog with my own DevMode....

    I am trying to do exactly the same thing but it doesn't work so far. MSDN says that ...the values of hDevMode and hDevNames in PRINTDLG may change when they are passed into PrintDlg. This is because...
  10. Re: Accelerators and the "warning: not executing disabled command" message

    OK, thanks for your time.
  11. Re: Accelerators and the "warning: not executing disabled command" message

    Strange, I also use VS2005. The trace message is in wincore.cpp at line 2269 (though I am not sure we both have the same version).
  12. [RESOLVED] Accelerators and the "warning: not executing disabled command" message

    Hi, I have a menu command to which an accelerator is hooked. Whenever the command is disabled (using the ON_UPDATE_COMMAND_UI message) and I press the accelerator key, I get a trace message saying:...
  13. Replies
    1
    Views
    772

    Return value of an ATL event

    Hi, I have a problem getting a return value from an ATL event.

    I my definition of the connection point interface I have this method:


    [id(1), helpstring("method PageFormatted")] HRESULT...
  14. Getting the main window pointer from an ActiveX control

    I have an ActiveX control embedded in a view. I would like to know if there is a way to get a pointer to the main application window from within the control. Of course, I could get the pointer when...
  15. Re: Catching events from a COM object in an ActiveX control

    Problem solved!

    The trick is to manually provide information about the event methods. So first in the header file for the ActiveX control declare one _ATL_FUNC_INFO object for each event in the...
  16. Catching events from a COM object in an ActiveX control

    I have a MFC ActiveX control which displays data from a COM object (which is in a separate DLL). I want to be able to catch events fired from this object. I tried to derive the ActiveX implementation...
  17. Replies
    4
    Views
    771

    Re: Pointer n00b

    And what is the problem with this code? :ehh:
  18. Replies
    0
    Views
    497

    Getting the printer resolution

    I have a problem getting the resolution of a printer set in the CPrintDialog. I've tried numerous mechanisms but none of them seems to work. I am able to detect the resolution only if the user...
  19. Replies
    1
    Views
    923

    Setting DC resolution

    Hi, I would like to create a screen device context with a specific resolution, say 300 dpi (I don't know if I am using the correct words, I just want the GetDeviceCaps( hDC, LOGPIXELSX ) method to...
  20. Replies
    9
    Views
    2,545

    Re: Getting DLL filename

    Browsing through the web, I found this trick too - in a similar fashion:


    MEMORY_BASIC_INFORMATION mbi;
    static int dummy;
    TCHAR szFileName[ MAX_PATH ];
    VirtualQuery( &dummy, &mbi,...
  21. Replies
    9
    Views
    2,545

    Getting DLL filename

    Is it possible to get the filename of the DLL the current code is in? Of course I could hardcode it but somebody could later change the output filename from "a.dll" to "b.dll" - is it possible to...
  22. Re: Running an Excel macro from another workbook

    Hey, I'm afraid you're a little off-topic. I don't want to record a macro. I have created some macros in the VBA and stored them in a module of the specific workbook. Now what I want is to call the...
  23. Re: Running an Excel macro from another workbook

    Thanks for your reply. My macro is stored in a module inside the workbook (as a "sub") and it is called when:
    1) the workbook is being opened
    2) the custom menu item is not yet created

    In case...
  24. Running an Excel macro from another workbook

    Got a problem... is it possible to run a macro in some workbook from another workbook (both of them are open)? I have created a custom menu item, but it applies only to the workbook by which it was...
  25. Inserting an ActiveX control into project

    Hi,

    I have created an ActiveX project and I want to insert it into a MFC application. I tried to do this using the standard Add Class -> From an ActiveX Control (I am using VS.NET). A wrapper...
Results 1 to 25 of 78
Page 1 of 4 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center