Skip to content

Windows API

Discussions on the APIs of the various versions of Windows

This category can be followed from the open social web via the handle windows-api@forum.codeproject.com

811 Topics 2.7k Posts
  • PreFetch - Is there a way to turn off or limit?

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Vista and MacBook

    question
    4
    0 Votes
    4 Posts
    0 Views
    K
    No idea.
  • Anyone with vista wanna check my article demo?

    help com question
    3
    0 Votes
    3 Posts
    0 Views
    S
    The window moves around but unlike other windows. It takes a few seconds and then staggers across the screen.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Glass-Control

    c++ com question
    4
    0 Votes
    4 Posts
    0 Views
    A
    Hi Jürgen, Jürgen Jung wrote: But i don't see how to create a glass-toolbar in a dialog-based application. In your extension the function CreateAeroToolBarCtrl() is only available for WTL::CFrameWindowImpl. Maybe i miss a thing, but i can't see. - Derive your dialog from aero::CDialogImpl and chain the message map as shown in the article. - Declare in your dialog class a aero:CToolbarCtrl variable, say m_ATB. - In your OnInitDialog() handler:    + with m_ATB create the toolbar control if it is not part of the DIALOGTEMPLATE resource, or subclass it.    + SetOpaque() the dialog client area except the toolbar rectangle. That should be enough to get what you want:) For instance, with any of the article's sample CAboutDlg, remove the IDC_STATIC group box to get some room and in aboutdlg.h: // aboutdlg.h : interface of the CAboutDlg class // ... class CAboutDlg : public aero::CDialogImpl<CAboutDlg> { public: enum { IDD = IDD_ABOUTBOX }; aero::CToolBarCtrl m_ATB; // added // ... LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) { CenterWindow(GetParent()); // create the toolbar and aero enable it CToolBarCtrl tb = AtlCreateSimpleToolBar(m_hWnd, IDR_MAINFRAME); aero::Subclass(m_ATB, tb); // compute the opaque rectangle RECT rClient, rTB; GetClientRect(&rClient); m_ATB.GetWindowRect(&rTB); rClient.top += rTB.bottom - rTB.top; // Set the opaque area SetOpaque(rClient); return FALSE; } If you need to follow-up on this thread, better do it in the article forum. cheers, AR
  • Windows Vista Ultimate and MUI

    php com question discussion announcement
    2
    0 Votes
    2 Posts
    0 Views
    E
    As far as I know, yes. But it would be much easier, and probably better to do a fresh English install. The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
  • DwmSetWindowAttribute()

    json question
    2
    0 Votes
    2 Posts
    0 Views
    S
    Make sure you have installed the latest Windows SDK. Scott. —In just two days, tomorrow will be yesterday. —Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai [Forum Guidelines] [Articles] [Blog]
  • 0 Votes
    3 Posts
    0 Views
    P
    Uhmm.... i dont believe.... try with SQL front.. its more friendly and i work with this software in vista.... ;P
  • RasEditPhonebookEntry API not supported on Vista

    help sysadmin json question learning
    2
    0 Votes
    2 Posts
    0 Views
    M
    I'm surprised you're having a problem with it - MSDN does not list any problems. It does say that RasEditPhonebookEntry calls RasEntryDlg. You could try that API instead. However, I also see reports that the ANSI (A) versions of the RAS phone book APIs don't work - you could also try compiling for Unicode instead. You should now be strongly considering this anyway - there are some international scripts that Windows only supports for Unicode, there is no ANSI version. DoEvents: Generating unexpected recursion since 1991
  • chinese characters rotation

    css help question
    2
    0 Votes
    2 Posts
    0 Views
    P
    Does this have anything to do with Windows Vista? I don't see any indication in your post. You might be in the wrong forum. "The clue train passed his station without stopping." - John Simmons / outlaw programmer
  • Read-only Folder

    question
    4
    0 Votes
    4 Posts
    0 Views
    D
    John Simmons / outlaw programmer wrote: Has anyone ever seen a folder that kept making itself read-only? Yeah, a lot of times when you have a virus or spyware on your PC they tend to do that with specific folders to prevent you from deleting them. Boot up your machine in safe mode and get rid of it (as long as you are sure its not used by a critical system application). Pete Soheil DigiOz Multimedia http://www.digioz.com
  • Vista and Change/Repair issues

    help c++ announcement question workspace
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • magnifier that follows cursor

    help question
    3
    0 Votes
    3 Posts
    0 Views
    S
    yeah.. thats the 'second one'.. still looking for the first one :D life is study!!!
  • 0 Votes
    7 Posts
    0 Views
    E
    oh, its less annoying. Install the Virtual machine (VMware, Parallels, Microsoft VM), reboot, load the disks or download a premade image (for VMware), and go. It's gotten pretty easy, but I've been there for the long-haul so it may be easier for me. I've got linux and XP under virtualization on XP and Linux hosts. If I go to vista the virtual machines will have to go and probably add one more virtual machine to replace the host machine. Now when I upgrade I move the old environment to a guest and use it under the new host. Lets me keep backward compatibility and still move up. _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
  • Memory leak

    performance tutorial
    3
    0 Votes
    3 Posts
    0 Views
    P
    What does this have to do with Vista? This forum is specific for Vista problems and not programming problems, unless they are directly related to Vista. "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
  • case sensitive

    database help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    J
    Please post on the correct forum and you are more likely to get an answer. Jonathan Wilkes Darka[Xanya.net]
  • Battery Charge rate problem

    help tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Installing SQL 2000

    help database
    3
    0 Votes
    3 Posts
    0 Views
    O
    I assume your running MSDE, MSDE is not supported on Vista ... you'll need to use Sql Server 2005 Express. http://www.microsoft.com/sql/prodinfo/previousversions/faq-sql_on_vista.mspx[^]
  • RMTOOL.EXE for Vista Certification

    question
    2
    0 Votes
    2 Posts
    0 Views
    R
    g00g|e? Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.
  • Registry key with Path in it

    help sysadmin windows-admin tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    J
    Try adding a second '\' so "E:\" becomes "E:\\" Jonathan Wilkes Darka[Xanya.net]