Example #1
0
void Associations::SetDefault()
{
    wxChar name[MAX_PATH] = {0};
    GetModuleFileName(0L, name, MAX_PATH);
    ::DoSetAssociation(name, 1);
    ::DoSetAssociation(name, 0);

    UpdateChanges();
}
Example #2
0
void Associations::ClearAll()
{
    wxChar name[MAX_PATH] = {0};
    GetModuleFileName(0L, name, MAX_PATH);

    for (unsigned int i = 0; i < NUMBER_OF_ASSOC; ++i)
        DoClearAssociation(knownTypes[i].ext);

    UpdateChanges();
}
Example #3
0
void Associations::SetAll()
{
    wxChar name[MAX_PATH] = {0};
    GetModuleFileName(0L, name, MAX_PATH);

    for (unsigned int i = 0; i < NUMBER_OF_ASSOC; ++i)
        ::DoSetAssociation(name, i);

    UpdateChanges();
}
Example #4
0
void Associations::SetCore()
{
    wxChar name[MAX_PATH] = {0};
    GetModuleFileName(0L, name, MAX_PATH);

    for(int i = 0; i <= 12; ++i)        // beware, the number 12 is hardcoded ;)
        ::DoSetAssociation(name, i);

    UpdateChanges();
}
Example #5
0
void Associations::SetAll()
{
    wxChar name[MAX_PATH] = {0};
    GetModuleFileName(0L, name, MAX_PATH);

    for(unsigned int i = 0; i < CountAssocs(); ++i)
        ::DoSetAssociation(name, i);
    ::DoSetAssociation(name,1);
    ::DoSetAssociation(name,11);
    UpdateChanges();
}