View Issue Details

IDProjectCategoryView StatusLast Update
0001101Far Manager 1.7xPlugins APIpublic2018-11-09 13:07
ReporterNikolayAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Product Version1.75 
Target VersionFixed in Version 
Summary0001101: Баги при вызове AdvControl с ACTL_REDRAWALL
Description1.75 build 2609 x86 - экран не перерисовывается
Additional InformationСвязь с http://bugs.farmanager.com/view.php?id=949 ?
TagsNo tags attached.
Build

Relationships

related to 0000949 newvskirdin Far Manager Баги при вызове AdvControl с ACTL_REDRAWALL 

Activities

Nikolay

2009-10-07 22:37

reporter   bugnote:0004220

Код для воспроизводства бага:

#include "plugin.hpp"

PluginStartupInfo g_info;

void WINAPI _export SetStartupInfo(const struct PluginStartupInfo* psi)
{
    g_info = *psi;
}

void WINAPI _export GetPluginInfo(struct PluginInfo* pPI)
{
    pPI->StructSize = sizeof(PluginInfo);

    static const char* strs[] = { "RedrawAllBug" };
    pPI->PluginMenuStrings = strs;
    pPI->PluginMenuStringsNumber = 1;
}

LONG_PTR WINAPI DlgProc(HANDLE hDlg, int msg, int param1, LONG_PTR param2)
{
    if (msg == DN_CLOSE)
    {
        CONSOLE_SCREEN_BUFFER_INFO bi;
        GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &bi);
        COORD c = {0, 0};
        DWORD foo;
        FillConsoleOutputCharacter(GetStdHandle(STD_OUTPUT_HANDLE), 'X', bi.dwSize.X * bi.dwSize.Y, c, &foo);
        g_info.AdvControl(g_info.ModuleNumber, ACTL_REDRAWALL, 0);

    }
    return g_info.DefDlgProc(hDlg, msg, param1, param2);
}

HANDLE WINAPI _export OpenPlugin(int OpenFrom, INT_PTR item)
{
    FarDialogItem items[1] = {
        {DI_BUTTON,0,1,0,0,0,0,DIF_CENTERGROUP,1,"Ok"}
    };
    g_info.DialogEx(g_info.ModuleNumber, -1, -1, 30, 3, NULL, items, 1, 0, 0, &DlgProc, 0);

    return INVALID_HANDLE_VALUE;
}

alexy

2011-02-05 23:04

administrator   bugnote:0006382

Far 1.7 is no longer supported

Issue History

Date Modified Username Field Change
2009-10-07 22:35 Nikolay New Issue
2009-10-07 22:37 Nikolay Note Added: 0004220
2011-02-05 23:04 alexy Note Added: 0006382
2011-02-05 23:04 alexy Status new => closed
2018-11-09 13:07 JohnDoe Relationship added related to 0000949