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

Search:

Type: Posts; User: stakon

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Re: Does GetDC()->operator HDC() need a ReleaseDC?

    Thanx guys!

    You have all been very helpful.
  2. Does GetDC()->operator HDC() need a ReleaseDC?

    Hi all,

    I am calling a DLL function OnMouseMove which requires me to pass an HDC.

    I am using:


    OnMouseMove{
    HDC hdc;
    hdc = GetDC()->operator HDC();
  3. Replies
    3
    Views
    1,612

    Re: Implementing message handling in a DLL

    Hi cilu,

    thanx for the fast response.
    Unfortunately what you describe isn't so obvious to me as to how to do this.

    I think my case is the second of those you describe.
    So you propose i...
  4. Replies
    3
    Views
    1,612

    Implementing message handling in a DLL

    Hi all!

    I am making an MFC - SDI project where at some point i need that my View is "commandeered" by a DLL.

    I'll explain further.
    When the DLL is loaded i pass to it the pointer of my View....
  5. Re: Is there a way to change the font of a toolbar's a caption?

    It's a member of my mainframe so it is used by all mainframe's child windows, but thanx for pointing this out.

    By changing Windows settings i presume all toolwindow captions will be affected and...
  6. Is there a way to change the font of a toolbar's a caption?

    Good day,

    is there a way to programmatically change the font of a toolbar's a caption?

    I would like my floating toolbars to have the same font used by my menus, but by simply using...
  7. Thread: Printer Margins

    by stakon
    Replies
    12
    Views
    1,844

    Re: Printer Margins

    Nikitozz,

    i think you are confusing something.
    Let me explain with a numerical example:

    left_margin = GetDeviceCaps(PHYSICALOFFSETX); // = 80 //assume left margin is 80
    page_width =...
  8. Thread: Printer Margins

    by stakon
    Replies
    12
    Views
    1,844

    Re: Printer Margins

    OReubens,

    I am aware of what you are explaining here. Perhaps the way i wrote the above is confusing...

    What i mean is that PHYSICALWIDTH and PHYSICALHEIGHT return the actual physical paper...
  9. Thread: Printer Margins

    by stakon
    Replies
    12
    Views
    1,844

    Re: Printer Margins

    Good Day,

    by using the PHYSICALOFFSETX and PHYSICALOFFSETY i get the "the distance from the left/top edge of the physical page to the left/top edge of the printable area" as noted in MSDN help.
    ...
  10. Replies
    11
    Views
    3,139

    Re: CFileDialog dynamically change filter list

    Good day,

    I have a similar problem.

    I have a CFileDialog used to "Save As..." and i want to get a pointer to the "file_extension"ComboBox to see what the user selected by calling...
  11. Re: Reading ansi txt files vs. Reading utf8 txt files

    Thank you all for your replies.

    For anyone interested, I finally made this work by using this:

    char* Utf8toAnsi( const char * utf8, int len )
    {

    char *ansistr = NULL;
    int length =...
  12. Reading ansi txt files vs. Reading utf8 txt files

    Good day,

    I am working in a project where i have to use UNICODE for greek letters.
    I need to read from a txt file, find specific data within and export it in another txt.

    The problem i have...
  13. Replies
    0
    Views
    500

    PDF Creator/Editor

    Good day,

    I am looking for a PDF creating/editing component to use in a visual c++ project.
    I have found several products which can do the job but they lack some time-saving "utilities" such as:...
  14. Replies
    0
    Views
    445

    Text/Document Converter

    Good day,

    I am looking for a free or commercial component to do the following:

    Convert from many known text formats to another. (doc,html,pdf,txt etc.)

    If you have used something like that...
  15. Replies
    2
    Views
    1,028

    Re: Text File Input and Output at the same time

    Thanx Philip,

    that pretty much covered what i was missing.
  16. Replies
    2
    Views
    1,028

    Text File Input and Output at the same time

    Good day!

    I am trying to do basic text file input/output and i have stumbled on this problem:
    When using the code beneath, nothing is written in the txt file.
    If i omit the while block then...
  17. Re: Maximize of Mainframe doesn't occupy whole screen

    Nothing like that in the whole project as well...
  18. Re: Maximize of Mainframe doesn't occupy whole screen

    The OnSize implementation indeed contains something but i think it is irrelevant.

    void CMainFrame::OnSize(UINT nType, int cx, int cy)
    {
    CFrameWnd::OnSize(nType, cx, cy);
    }

    I commented the...
  19. Re: Maximize of Mainframe doesn't occupy whole screen

    No, nothing like that in the whole project...
  20. Re: Maximize of Mainframe doesn't occupy whole screen

    Yes of course!

    I've done a lot of resizing/minimize/maximize both with buttons and with code i.e. ShowWindow(SW_MAXIMIZE) , but if the application started initially with wrong positioning, it...
  21. Maximize of Mainframe doesn't occupy whole screen

    Good day!

    I am trying to fix an issue in a program made by someone else, so i am not familiar with all of the code.
    Anyway, i hope it seems simple enough for someone experienced.

    The program...
  22. Replies
    4
    Views
    594

    Re: a beginner's question about a struct

    Thank you for the useful responses.

    Problem solved :D
  23. Replies
    4
    Views
    594

    a beginner's question about a struct

    Good day
    i have a question about giving a value to a struct, when i refer to it like that:

    struct MYSTRUCT {FLOAT X, Y, Z;};

    MYSTRUCT *pStruct;

    for (int i=0;i<10;i++) {
    ...
  24. Replies
    3
    Views
    10,332

    Re: How to draw simple 3d shapes?

    Thanx for your replies!

    Of what i read, i think i will not need the complexness of advanced 3d graphics, just some basic functions like drawing 3d polygons, scaling them , rotating them, and...
  25. Replies
    0
    Views
    1,654

    How to: Create a mesh from a VertexBuffer?

    Good Day,

    I have made some basic 3d shapes, namely a cube-like object using Vertices and Vertex Buffers.
    I present those shapes using the
    d3ddev->SetStreamSource(...);...
Results 1 to 25 of 29
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)